Shaders/ir: keep skips when body can resurrect EXEC or has scalar sid… #517
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!517
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-517"
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?
@pug205gti6 on GitHub · 2026-11-25 01:57 UTC · original
pug205gti6:pr/443-shaders-ir-skips→main· +429 −7 · 1 files · 1 commits · open…e effects
In
ir::without_skips, removings_cbranch_execzcauses waves withEXEC == 0to fall through and execute the skipped regioninside. Previouslyskipped()exemptedReg::S(126 | 127)(EXEC_LO/EXEC_HI) from join-phi checks without verifying thatinsidekeepsEXEC == 0, and did not checkinsidefor EXEC-independent scalar side effects.s_store_*,s_buffer_store_*,s_scratch_store_*,s_atomic_*,s_buffer_atomic_*,s_sendmsg,s_sendmsghalt,s_barrier,s_round_mode,s_denorm_mode).insidethat may be nonzero whenEXECenters as0(seeded with external values other than the skip branch's ownEXECdwords), propagating zero through narrowingv_cmpx_*,s_and*/s_andn2*,s_mov_b32/s_mov_b64, and pure whole-wave sections (s_or_saveexec/s_nand_saveexecpaired with an exact full-width restore). Reject if anyEXECwrite or phi insideinside(outside a pure whole-wave section) or incomingEXECphi attargetcan become nonzero, or if a live VGPR phi attargettakes a value written inside a whole-wave section.s_or_b64/s_andn2_b64EXEC widening, inner narrowing (still allowed),s_sendmsg,s_barrier, ands_buffer_store_dword.@Revens2 on GitHub · 2026-11-25 07:36 UTC · original
Duplicate of #443: @AscilCH opened this patch 65 minutes earlier, and
gh pr diffreturns the same bytes for both (+429/-7 on 1 file(s), same title).Please continue in #443 so the review history and any test data stay in one place.
Thanks.
@Headache3318 on GitHub · 2026-11-25 07:51 UTC · original
Independent verification: PR #517 merges cleanly onto main, touches only crates/victory-shader/src/ir.rs. Build: success. Tests: 252 passed, 1 failed, 6 ignored. Single failure (modules::net::tests::only_loopback_is_reachable) is pre-existing Wine environment issue (ws2_32.dll lacks WSAConnectByList) unrelated to the PRs shader IR changes. PR builds and passes all relevant tests. Machine: Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04, Proton, AI-assisted.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.