Skip to content

nir: Handle register sources in lower_phis_to_regs_block

Faith Ekstrand requested to merge gfxstrand/mesa:nir/phi-reg-sources into main

During certain control-flow manipulation passes, we go out-of-SSA temporarily in certain areas of the code to make control-flow manipulation easier. This can result in registers being in phi sources temporarily. If two sub-passes run before we get a chance to do clean-up, we can end up doing some out-of-SSA and then a bit more out-of-SSA and trigger this case. It's easy enough to handle.

Fixes: a620f668 ("nir: Add a couple quick-and-dirty out-of-SSA helpers") Closes: #6370 (closed)

Edited by Faith Ekstrand

Merge request reports