aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2020-03-30 12:08:20 -0500
committerMarge Bot <[email protected]>2020-03-31 00:18:05 +0000
commite3554a293bfc8364b98745dc5a8d219185a84af9 (patch)
treefe052f782631170f18b558240c97d8f0cfb23786 /src/compiler
parent2aab7999e45d2dc6c61e4fce094aa114d57e2c7a (diff)
nir: Handle vec8/16 in opt_split_alu_of_phi
Reviewed-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4365>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir/nir_opt_if.c5
1 files changed, 1 insertions, 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;