upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/xma2_decoder.cpp
diff options
context:
space:
mode:
authorDadaCap <167002618+DadaCap@users.noreply.github.com>2026-11-26 00:52:51 +0100
committerDadaCap <167002618+DadaCap@users.noreply.github.com>2026-11-26 00:53:17 +0100
commit18af7e9fa2673b6d184ad6d3d90b8e4024577719 (patch)
tree1dc182dc738cbfaa90361b723cb156f30ce75ca5 /runtime/src/xma2_decoder.cpp
parent84816055d526062d6c61da6076fc31c92aee2b66 (diff)
wave64_emulate_opt: fold a region at most one lane of the wave runs (SHADER-W64-ONE-LANE-FOLD)
A forward must-analysis proves EXEC at most one lane after v_cmp(x)_eq_{i,u}32 <constant>, v0 (v0 the thread id, not written since entry; the group one row of x or rows of whole waves) and through copies, ANDs and saveexecs of that mask. Such an s_cbranch_execz region folds with several stores and in a cycle, orders no accesses inside, and when it writes no EXEC its v_readfirstlane_b32 is the lane's own value. One 1024-thread library compute program: 639 -> 33 OpSwitch cases, spirv-val valid. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gt9hwRYcpySx4P4ncQ3wD5
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions