Shaders: keep missing values live through joined phis #647
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/647"
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 Marvisak/VIctory. Originally posted by Quat3rnion on 2026-11-24T06:08:45Z.
What
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.Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T06:14:19Z.
Review: APPROVED
Tested on native Windows 11 with Rust 1.98.1 (x86_64-pc-windows-msvc).
Imported from Marvisak/VIctory. Originally posted by Quat3rnion on 2026-11-24T06:15:57Z.
Duplicate of #612, which makes the same transitive phi-liveness change with the same reproducer. Closing in favour of that PR.
Pull request closed