Commit Graph
2 Commits
Author SHA1 Message Date
Filip Michalski 9a2ac3549e perf(shader): snapshot only phi users during SSA cleanup 2026-10-30 17:43:57 +01:00
RengundomandClaude Opus 5.5 defbf002a1 test(shader): cover SSA pass reads
Nothing in CTest linked SsaPass. The new shader_ssa_pass_reads test
builds the pass with the IR sources only. For all 13 variable classes
it checks:

- reads in the defining block and through single predecessors;
- replacement writes;
- a diamond merge, including phi operand order;
- repeated reads that return the cached value and insert no
  instructions;
- an unsealed self-loop whose pending phi resolves to the entry value;
- a loop-carried header phi;
- the zero initial value of a read with no definition.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-29 03:08:36 -05:00