nir: Don't try to to-SSA ALU instructions that are already SSA.
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
@@ -239,6 +239,9 @@ rewrite_alu_instr_forward(nir_alu_instr *instr, rewrite_state *state)
|
||||
|
||||
nir_foreach_src(&instr->instr, rewrite_use, state);
|
||||
|
||||
if (instr->dest.dest.is_ssa)
|
||||
return;
|
||||
|
||||
nir_register *reg = instr->dest.dest.reg.reg;
|
||||
unsigned index = reg->index;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user