From: Jason Ekstrand Date: Mon, 30 Mar 2020 17:08:20 +0000 (-0500) Subject: nir: Handle vec8/16 in opt_split_alu_of_phi X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3554a293bfc8364b98745dc5a8d219185a84af9;p=mesa.git nir: Handle vec8/16 in opt_split_alu_of_phi Reviewed-by: Alyssa Rosenzweig Reviewed-by: Ian Romanick Part-of: --- 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;