Shaders: keep lane-mask restores apart across reads of first register #180
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!180
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-180"
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?
@sandie69p on GitHub · 2026-11-24 22:17 UTC · original
sandie69p:fix/wave32-rt-or-compute→main· +24 −0 · 1 files · 1 commits · openIn
ir::unspill, the look-ahead that coalesces two separatedv_readlane_b32restores into a pairs_mov_b64at the first instruction checkedread[j].contains(&(code + 1))but omittedread[j].contains(&code), overwriting the first register early when an intermediate instruction reads it.Adds
read[j].contains(&code)to the interference check and a regression unit test (unspill_does_not_pair_restore_across_read_of_first_register).Related to #75.
@juliptree on GitHub · 2026-11-25 10:16 UTC · original
I tested base
2119b0eand PR head4a6d4f7with the same synthetic fixtures on an RTX 5060 Ti and WARP. Reading s4 between restores returned 0x11223344 on both builds. The base paired the restores and the PR did not. Reading s5 returned its pre-restore value 0x00000003 on both builds, and neither paired. Since the paired move is emitted at the first restore, only the s5 restore moves earlier. Is there a fixture where reading s4 produces a different value on the base? The PR’s current test checks whether pairing occurred, so it passes even though both builds return the same values.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.