upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.cpp
diff options
context:
space:
mode:
authorwhoalin1 <207920491+whoalin1@users.noreply.github.com>2026-11-25 18:57:58 +0200
committerMan Alin <whoalin414@gmail.com>2026-11-30 22:23:09 +0000
commit570b441d70941b751d803e9570bbd8c8ed70bdce (patch)
tree4a02ca65f2fbb7971c33a51ff4c40f68e33c62d5 /runtime/src/thread_stacks.cpp
parent28944c192131c4053a64fa0141625b52da62d7cd (diff)
translator: lane-mask data reads gather the wave word under narrowed EXEC
A lane mask in an SGPR, EXEC or VCC is one wave-wide word on hardware. The EXEC-coverage gate added earlier in this pull request could not prove the independent-SGPR restore idioms crosslane_fuzz uses, so it fell back to this lane's 0 / ~0 bit for exactly the programs the read is meant to fix. It also encoded the wrong control-flow model: EXEC narrowing is a per-lane value here, not a SPIR-V edge. Mask-data readers are already kept out of lane-local `if (active)` runs, and the eager wave-mask store keeps lowering from moving the subgroup gather into an EXEC-selected arm, so lanes EXEC has off still contribute their mask bits. Remove the gate and the CFG EXEC provenance analysis it needed, gather the mask word for every lane-mask data read, and cover narrowed SGPR and VCC reads, an independent all-ones SGPR EXEC restore, and the composed vector-bitwise mask words. The vector-bitwise expectations now check the uniform mask words and the resulting per-lane cndmask bits and popcounts rather than the old fallback artifact. Co-Authored-By: SWE-2.1 Max <noreply@google.com>
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions