perf(shader): add SimplifyCFG with guard coalescing and LICM (Wave 11A M2+M3) #429
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!429
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Androtim on GitHub · 2026-12-04 09:43 UTC · original
Androtim:perf/w11a-shader-opt-m2→main· +2835 −29 · 5 files · 3 commits · merged 2026-12-04 10:31 UTCSummary
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
github-bot referenced this pull request2026-12-04 10:03:28 +00:00
@Androtim on GitHub · 2026-12-04 10:01 UTC · original
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.@Androtim on GitHub · 2026-12-04 10:31 UTC · original
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.