From e3554a293bfc8364b98745dc5a8d219185a84af9 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 30 Mar 2020 12:08:20 -0500 Subject: [PATCH] nir: Handle vec8/16 in opt_split_alu_of_phi Reviewed-by: Alyssa Rosenzweig Reviewed-by: Ian Romanick Part-of: --- src/compiler/nir/nir_opt_if.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/compiler/nir/nir_opt_if.c b/src/compiler/nir/nir_opt_if.c index 4d391325050..75e4244cb2f 100644 --- a/src/compiler/nir/nir_opt_if.c +++ b/src/compiler/nir/nir_opt_if.c @@ -388,10 +388,7 @@ opt_split_alu_of_phi(nir_builder *b, nir_loop *loop) * to loop unrolling not recognizing loop termintators, and type * conversions also lead to regressions. */ - if (alu->op == nir_op_vec2 || - alu->op == nir_op_vec3 || - alu->op == nir_op_vec4 || - alu->op == nir_op_mov || + if (nir_op_is_vec(alu->op) || alu_instr_is_comparison(alu) || alu_instr_is_type_conversion(alu)) continue; -- 2.30.2