nir: Take if_uses into account when repairing SSA
If a def is used as an condition before its definition, we should also consider this a case to repair. When repairing, make sure we rewrite any if conditions too. Found in while inspecting a SPIR-V conversion from a 'continue block' that contains a conditional branch. We pull the continue block up to the beggining of the loop, and the condition in the branch ends up defined afterwards. Reviewed-by:Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net> Fixes: 364212f1 "nir: Add a pass to repair SSA form" (cherry picked from commit c037dbb0)
Loading
Please register or sign in to comment