Shaders: keep missing values live through joined phis #647
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!647
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/647/head"
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?
@Quat3rnion on GitHub · 2026-11-24 06:08 UTC · original
Quat3rnion:victory-phi-liveness→main· +51 −7 · 1 files · 2 commits · closed without mergingWhat
An unsupported value such as
s_memtimewas refused when a branch read itdirectly, but accepted after two conditional assignments.
fill_phisreadsan incoming phi's stored value without going through
get, so a phi usedonly as an input to another phi was never marked as read; a missing value
could then be replaced with zero and pass lowering. Reading a phi now marks
the phis feeding it as live too, so both forms agree. Regression reproducer
comes from issue #604 (credited in the branch history).
An AI tool wrote part of this change.
Tested
cargo test --workspace: 165 passed, 0 failed, 3 ignored. The reproducer compares direct and joined reads of a missing timestamp and checks that a dead timestamp still lowers.cargo check --target x86_64-pc-windows-gnu --workspace --testspasses. No Windows host here.cargo xtask policypasses (150 files ok). No game files or data from them were added.Checklist
cargo xtask policypasses. No game files or data from them were added.@Quat3rnion on GitHub · 2026-11-24 06:15 UTC · original
Duplicate of #612, which makes the same transitive phi-liveness change with the same reproducer. Closing in favour of that PR.
Pull request closed