Skip to content

nir: Insert phi undef sources while lowering returns

Jesse Natalie requested to merge jenatali/mesa:nir-phi-undefs into main

Alternate proposal to what I had in !22787 (merged). CI's happy with it, except that it obliviates a couple of tests for nir_lower_returns. Trivial phis no longer survive that pass, because if they survive to the point where the jump instruction is removed, they now gain an additional source which prevents them from being removed later if they were part of an if.

Edited by Jesse Natalie

Merge request reports