From f5bbdf7621f882f3e769ea6941f0b6ad46e032d7 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 28 Mar 2020 11:23:52 -0500 Subject: [PATCH] nir: Copy propagate through vec8s and vec16s Reviewed-by: Alyssa Rosenzweig Reviewed-by: Ian Romanick Part-of: --- src/compiler/nir/nir_opt_copy_propagate.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.30.2