From: Jason Ekstrand Date: Sat, 28 Mar 2020 16:23:52 +0000 (-0500) Subject: nir: Copy propagate through vec8s and vec16s X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f5bbdf7621f882f3e769ea6941f0b6ad46e032d7;p=mesa.git nir: Copy propagate through vec8s and vec16s Reviewed-by: Alyssa Rosenzweig Reviewed-by: Ian Romanick Part-of: --- diff --git a/src/compiler/nir/nir_opt_copy_propagate.c b/src/compiler/nir/nir_opt_copy_propagate.c index 00c78f38451..4a98a2812c3 100644 --- a/src/compiler/nir/nir_opt_copy_propagate.c +++ b/src/compiler/nir/nir_opt_copy_propagate.c @@ -61,9 +61,8 @@ static bool is_vec(nir_alu_instr *instr) return false; } - return instr->op == nir_op_vec2 || - instr->op == nir_op_vec3 || - instr->op == nir_op_vec4; + assert(instr->dest.dest.is_ssa); + return nir_op_is_vec(instr->op); } static bool