diff options
| author | whoalin1 <207920491+whoalin1@users.noreply.github.com> | 2026-11-24 23:56:36 +0200 |
|---|---|---|
| committer | whoalin1 <207920491+whoalin1@users.noreply.github.com> | 2026-11-25 03:41:00 +0200 |
| commit | 8e5cf5aef1942811bc6e377077b8dc8f388ff8fc (patch) | |
| tree | b71201c0323af882a783ad0504a12cd2e7f7e569 /runtime/test/loader_test.cpp | |
| parent | 53ef382d7097290ecb1387f2400eaa7d134585b6 (diff) | |
fix(rdna2spirv): include END in out_pcs for trailing conditional branches
A conditional branch in the last basic block (no fallthrough block, so
len(raw_edges[b]) == 1) emits OpSelect(%cond, tgt, len(blocks)) and can
leave %pc at either tgt or cfg_structure.END.
Compute exact per-block out_pcs in rdna2spirv._block_out_pcs (matching
wave64_emulate_opt), pass it through capped_tree() into both
cfg_structure.structure() (so single-target fall-off-the-end blocks also
keep their dominated target guard) and unwrap_known_pc_guards(), and
pass compact_out_pcs into cfg_structure.structure() in wave64_emulate_opt.
Add unit and semantic regression tests covering both the loop back-edge
repro reported in review and the non-loop dominated-target variant.
Co-Authored-By: Gemini 4 Neon <noreply@google.com>
Diffstat (limited to 'runtime/test/loader_test.cpp')
0 files changed, 0 insertions, 0 deletions