Files
shadPS4/tests
TheTurtle 245d88590d shader_recompiler: Improve ssa rewrite pass correctness and readability (#4899)
The ssa rewrite pass is based on the spirv-opt pass of the same name:
https://github.com/KhronosGroup/SPIRV-Tools/blob/main/source/opt/ssa_rewrite_pass.cpp

This commit brings the pass closer to that reference implementation.
Notably this fixes applying the pass to unstructured graphs which seems to be broken otherwise

Additionally the manual stack iteration of ReadVariable has been replaced with recusion
which is much easier to reason about

Undef handling has also been changed, before each block would define its own Undef instruction,
now the pass will keep track and reuse compatible instructions add insert them to the first block
2026-08-22 19:07:50 +03:00
..
2026-06-07 19:14:42 +03:00
2026-08-19 10:27:15 -05:00
2026-08-19 10:27:15 -05:00