direct compute: SCC liveness treats SCC-neutral SOP1 ops as SCC readers #3176
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#3176
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 20:23 UTC · original
Part of #2935 (instruction coverage). Target branch
main. I am taking it.Gap. The direct compute SCC liveness (
DirectCompute::uses_scc_after) treats every SOP1 outside a short list as an unknown SCC reader. An SCC written by a byte-window descriptor rewrite therefore stays live past instructions that neither read nor write SCC, such ass_ff1_i32_b64. The rewrite is then refused with "numeric SCC from a symbolic descriptor field".Measured on a local capture of 2,689 compute requests (counts and instruction shape only), with
compile_dxil --jobs 8 gfx1013-direct-cs@36 --requestsonmain6057071b(the commits since then do not touchgfx1013_compute_native.cpporgfx1013_direct_compute.inl):s_ff1_i32_b64with an EXEC source, which stays refused.Plan: classify the SOP1 ops the direct path lowers by their SCC behaviour.
s_brev,s_sext,s_bitset0/s_bitset1ands_bitreplicate.s_abs_i32, the 32-bit counts and the remaining b64 saveexec forms.s_cmovis left to #3071 and stays conservative here.Unclassified ops keep the conservative rule.
Tests: compile controls. The rewrite followed by
s_ff1_i32_b64ands_brev_b32compiles. The same rewrite followed bys_cselect_b32stays refused.AI-assisted.