Shaders/own_bits: fix STALE taint propagation for control-dependent a… #516
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/516"
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?
Imported from fxceless/victory-fork. Originally posted by pug205gti6 on 2026-11-25T01:57:18Z.
…nd loop-carried mask phis
In
own_bits::Ctx::site, theSTALEcheck missed test-dependent lane masks that outlived their round in three ways:deppropagation overst.phi_masksonly checked the BDD support of incoming edge values, missing control-dependent mask phis whose per-edgegiven(m, edge)folded to constants (TRUE/FALSE) across a tainted branch or path.lpdominated by a test blocktb. Because the own-bit test normally lives in the loop header (tb == h),self.dominates(tb, b)skipped every block inlp, including guards/uses beforetiintband loop-carried mask phis ath.st.masksuser check only flaggedUser::Phi(b2, k2)when!lp[b2], ignoring live loop-header phis atb2 == h.Propagate control-dependent taint into
st.phi_maskswhen incoming edge values differ and a predecessor's reachability or branch condition is tainted, reject tainted loop-header mask phis ath, check guards and instruction mask users against instruction-level dominance after(tb, ti), and treat live phi users athas leaving the round. Add synthetic unit tests covering control-dependent loop-carried, control-dependent post-loop, and direct data-dependent loop-carried tainted masks.Imported from fxceless/victory-fork. Originally posted by Revens2 on 2026-11-25T07:36:17Z.
Duplicate of #441: @AscilCH opened this patch 65 minutes earlier, and
gh pr diffreturns the same bytes for both (+181/-10 on 1 file(s), same title).Please continue in #441 so the review history and any test data stay in one place.
Thanks.
Imported from fxceless/victory-fork. Originally posted by Headache3318 on 2026-11-25T07:51:48Z.
Independent verification: PR #516 (Shaders/own_bits: fix STALE taint propagation for control-dependent and loop-carried mask phis) merges cleanly onto main (
8dd30ab). Build: success. Tests: 172/172 shader tests pass; full workspace tests fail on Linux due to known Windows-only dependency issue (unrelated to PR). Only 1 file modified: crates/victory-shader/src/emit/own_bits.rs (+181, -10). PR is clean and ready to merge. Machine: Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04, Proton, AI-assisted.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.