upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/bcpack.cpp
diff options
context:
space:
mode:
authorDadaCap <167002618+DadaCap@users.noreply.github.com>2026-11-27 13:39:13 +0100
committerDadaCap <167002618+DadaCap@users.noreply.github.com>2026-11-27 13:39:13 +0100
commita78040bb133cb25433eb92a2536ab87435c32e7d (patch)
treeac59cccb50f8fd9635e722a2ae2160ca3789a3b9 /runtime/src/bcpack.cpp
parent7ccbbd8761805eefec39b1cd382d05f2415bed69 (diff)
Wave64 one-lane fold: loop a one-block self-loop, half EXEC writes, implicit carry VCC
Three soundness gaps the review reproduced against the round emulation: - A region that is one block branching back to itself was emitted straight, so it ran once. It now gets a sub-CFG like a multi-block region and is emitted as a loop through cfg_structure.structure. This also covers the read-only self-loop that was already folded before the one-lane rule. - A write of one half of EXEC (v_cmp_eq_u32_e64 exec_lo, 0, v0) marked EXEC at most one lane, though the emitter keeps the other half's lanes. A half write now keeps the fact only when EXEC already had it and the half written is within it (a compare). - The short form v_add_co_ci_u32 vD, src0, src1 (also sub, subrev) wrote VCC only in the emitter. explicit_carry_vcc now gives it its VCC carry-out and carry-in operands when the listing is read, so every analysis sees the write, and the emitter's special case is removed. tests/semantic/test_wave64_one_lane_fold.py adds each case (8 subtests fail before) and picks in lanes 32-63 of both waves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gt9hwNPurxyJ9LAfUbNiYr
Diffstat (limited to 'runtime/src/bcpack.cpp')
0 files changed, 0 insertions, 0 deletions