From: Eric Anholt Date: Mon, 26 Jan 2015 22:37:42 +0000 (-0800) Subject: nir: Don't try to to-SSA ALU instructions that are already SSA. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a3a60cb138ea9a7fb29368c8c8efe614a7d80fe;p=mesa.git nir: Don't try to to-SSA ALU instructions that are already SSA. Reviewed-by: Jason Ekstrand --- diff --git a/src/glsl/nir/nir_to_ssa.c b/src/glsl/nir/nir_to_ssa.c index 9c577fa9924..dbe1699c54c 100644 --- a/src/glsl/nir/nir_to_ssa.c +++ b/src/glsl/nir/nir_to_ssa.c @@ -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;