perf(shader): add SimplifyCFG with guard coalescing and LICM (Wave 11A M2+M3) #429
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/429"
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?
Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-04T09:43:36Z.
Summary
Implements Wave 11A Shader Optimizer Milestone 2 (SimplifyCFG + Guard Coalescing) and Milestone 3 (LICM) as 100% semantically exact, bit-identical DXIL module optimization passes, split cleanly into submodules (opt/cfg.rs and opt/licm.rs) to keep every source file compact and far below the policy size limit.
Milestone 2: SIMPLIFY_CFG = 256 (crates/victory-shader/src/emit/bitcode/opt/cfg.rs)
Milestone 3: LICM = 512 (crates/victory-shader/src/emit/bitcode/opt/licm.rs)
awBufferLoad SRVs, extureLoad, sample*, LDS/TGSM Op::Load (space == 3) (preserves cross-wave spin-polling loops), Effect::Lanes (wave*/quad*/derivatives), Op::Phi, and Effect::Writes.
VICTORY_SHADER_OPT Integration (opt.rs, emit/mod.rs)
Verification
Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-04T10:01:41Z.
Triage (
2e44fc99, CIcheckPASS,MERGEABLE):+2,617/-29split intoopt/cfg.rs+opt/licm.rs, zero opt-in toggles), however Gate 2 Adversarial Audit (#282comment7408048958) flagged1 [P0]+1 [P1]merge blockers (cross-lanewave*/quad*& derivative op handling).triage: needs workpending fixes + Gate 2 clean re-audit + Gate 3 plain---release&--features diagnosticsvisual verification.Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-04T10:31:30Z.
Updated triage (
dd6b2f0f, CIcheckPASS,MERGEABLE):#282comment7408448066):VERIFIED CLEAN (0 P0, 0 P1)— prior cross-lane/derivative and P1 findings resolved.triage: needs work->triage: needs gpu test— ready for Gate 3 plain---releaseA/B &--features diagnosticsvisual verification.