diff options
| author | whoalin1 <207920491+whoalin1@users.noreply.github.com> | 2026-11-25 10:06:01 +0200 |
|---|---|---|
| committer | whoalin1 <207920491+whoalin1@users.noreply.github.com> | 2026-11-25 10:06:01 +0200 |
| commit | 33431d6fe5482fdc87edb212f325f37386b4937a (patch) | |
| tree | b768ba4813042c49aa6ff90d17aca08121e0c3fe /runtime/src/pe_loader.cpp | |
| parent | 8e5cf5aef1942811bc6e377077b8dc8f388ff8fc (diff) | |
fix(wave64_emulate_opt): refuse exec-fold regions containing a trailing conditional branch
A block with len(raw_edges[u]) == 1 ending in a conditional branch (no
fallthrough block, so falling through writes %pc = len(blocks) = END)
cannot safely sit inside a folded s_cbranch_execz/nz region whose exit
unconditionally sets %pc = skip.
Reject such blocks during the region walk in find_local_exec_folds
(matching the existing
ot succ[u] check) and add semantic regression
tests covering both s_cbranch_scc1 X and s_cbranch_scc1 skip in
structured and --dispatch-loop --wave64-emulate modes.
Co-Authored-By: Gemini 4 Neon <noreply@google.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions