Repository navigation
Conversation
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 7b1836fd on Windows 11: python -I tests/semantic/test_wave64_emulate_opt.py -> 23 tests, OK; git diff --check clean.
Explicit src_scc readers now keep SCC live through the wave64 emulation analysis instead of letting the optimizer drop a write it cannot see. The new cases cover the explicit read; the rest of the CFG suite passes. No blocking issue.
|
Independently reviewed and tested
Additional execution checks through the actual translator and the suite's workgroup interpreter: 48 shader runs, 4,864 lane values, zero mismatches. Both Negative control: restored the actual parent commit's No blocking findings within this scope. The emitter already treats the two spellings as the same SCC value; routing the alias through AI-assisted review with Codex; tests and negative controls executed locally. No repository files edited. |
|
Tested
I did not check whether any GPU fixture contains the |
|
Independent targeted GPU check of
All 24 modules passed Khronos |
|
Tested
In all three GPU modes the per-test PASS/SKIP list is identical between main and the PR (210 rows). The GPU suite has no explicit AI-assisted (Claude Code). Synthetic fixtures only, no game files. |
Claimed in the coordination thread.
What and why
The emitter reads the
src_sccoperand from the same SCC value asscc, but the wave64 optimizer only kept the latter live. An explicitsrc_sccread could therefore see a stale value after the optimizer removed the vote froms_and_saveexec_b64.This change recognizes both spellings in the shared SCC analysis. The regression runs the translated shader for scalar and vector reads with 64 and 128 threads. With the original analysis, all 384 lane results were zero instead of one. With the fix, all 384 match. The existing test for eliminating a dead vote still passes.
Tested
python -I tests/semantic/test_wave64_emulate_opt.py -q— 23 passed.python -I tests/semantic/test_fspx_rules.py -q— 9 passed.git diff --check— clean. The full semantic suite ran 7,457 tests and finished with 7 failures, 3 errors, 7 skips and 1 expected failure. Focused reruns on the unpatched parent aa2988c reproduced the divergent-loop errors and failures tracked in tests: test_loop_ballot_barrier follows #2089's structured wave64 emulation (main red since 1cc7497b) #3995 and the stale mutation anchor tracked in tests/semantic: re-anchor the v_mul_legacy_f32 mutation after the flush change #3883. The remaining full-suite results have not been isolated against the parent.The focused wave64 semantic run (test_wave64*.py) passed all 165 tests.
Synthetic fixtures only. This changes analysis of an existing operand. No GPU or game package was used.
No game files. AI-assisted.