ir::build: no unspill work without parked lanes; no Vec per VALU name #268
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!268
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-268"
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?
@amine23012004 on GitHub · 2026-11-26 13:56 UTC · original
amine23012004:perf/ir-build-less-work→main· +17 −3 · 2 files · 1 commits · openir::build: no unspill work without parked lanes; no Vec per VALU name
What.
unspilldecoded every instruction's fields and effects before finding out that nothing was parked. Without av_writelane_b32orv_readlane_b32, every park isNone, and it returns an empty list without having touchedlist. It now checks that up front. Programs that do park lanes take the same path as before.valu_dwords, which runs for every VALU instruction, collected the opcode name's_parts into aVeconly to read up to four of them. It now reads them without allocating, with the same results (including the empty-name case).Same output. IR and DXIL are identical before/after on the synthetic programs below (DXIL compared byte for byte).
Measured (Linux, release, best of 25,
ir::buildonly; synthetic pixel programs with no parked lanes):These are synthetic programs, not the title's shaders: programs that spill to lanes don't get the
unspillpart of the gain, and I have not measuredvictory shaderson a real dump.Checks.
cargo test -p victory-shader(209 passed),cargo clippy -p victory-shader --all-targets --target x86_64-pc-windows-msvc -- -D warningsclean.🤖 Generated with Claude Code
@lerapeurdu62280-debug on GitHub · 2026-11-26 14:16 UTC · original · approved these changes
Checked against main: without writelane/readlane every park is None, so unspill already returned an empty Vec without touching list. The early return gives the same result. rsplit('_').next() equals the old parts.last(), the empty name included. Same output, less work.
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.