direct compute: lower s_or_saveexec_b32 (wave32) #3160
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#3160
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Leyukaka on GitHub · 2026-11-27 19:04 UTC · original
Part of #2935 (instruction coverage). Target branch
main. I am taking it.Gap. The direct compute path lowers
s_and_saveexec_b32,s_andn2_wrexec_b32ands_or_saveexec_b64, but refusess_or_saveexec_b32with "direct DXIL lowering for s_or_saveexec_b32".Measured on a local capture of 2,689 compute requests (counts and instruction shape only), with
compile_dxil --jobs 8 gfx1013-direct-cs@36 --requestsonmain80668b97:.sadword 4 bit 20, #2999). The form there iss_or_saveexec_b32 sN, -1: save EXEC, then enable every lane.Plan: lower it like
s_and_saveexec_b32with OR: D = old EXEC, EXEC = old EXEC | S0, SCC = (EXEC != 0). EXEC is stored as computed, likes_or_saveexec_b64ands_mov_b32 exec_lo: a lane runs only if its own bit is set.Tests: a hardware readback against a CPU reference.
-1after a partial EXEC: the re-enabled lanes write their result.s_cselect.s_mov_b32 exec_lo.Measurement: the census and the run's requests, before and after.
AI-assisted.