diff options
| author | whoalin1 <207920491+whoalin1@users.noreply.github.com> | 2026-11-24 16:03:32 +0200 |
|---|---|---|
| committer | whoalin1 <207920491+whoalin1@users.noreply.github.com> | 2026-11-25 03:40:21 +0200 |
| commit | 0681b9d280ee1adac2d123fb47265da4d9e35444 (patch) | |
| tree | f244570206ab1965d8d79264bc5022f2cd7113d9 /runtime/src/pe_loader.cpp | |
| parent | 18a22c1aefa227fd2eda047bab3385147d569f9d (diff) | |
cfg_structure / rdna2spirv: unwrap tautological %pc guards in structured CFGs (ms_wave_info_s3 AMD LLPC crash)
cfg_structure.structure() wraps post-dominating join blocks after a diamond or loop in a ('guard', g, ...) node even when %pc == g is tautologically true on every incoming path. wave64_emulate_opt._unwrap_known_pc_guards already unwraps these guards for --wave64-emulate, which is why ms_wave_info_s3 passed on 32-wide NVIDIA GPUs while crashing with 0xC0000005 on native wave64 AMD RDNA2 Windows (driver 24.10.24, LLPC) where blk2's OpControlBarrier stayed trapped inside a conditional OpBranchConditional.
Move unwrap_known_pc_guards into tools/cfg_structure.py (reused by wave64_emulate_opt with zero duplication) and apply it in rdna2spirv.capped_tree() so both assemble() and needs_barrier_rounds() see post-dominating join blocks at top level.
SHADER-STRUCTURED-PC-UNWRAP
Co-Authored-By: Gemini 4 Neon <noreply@google.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions