From 09d0e06c5c8cb966594417a1c53349512ab0a316 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Sch=C3=BCrmann?= Date: Wed, 24 Jun 2020 11:14:18 +0100 Subject: [PATCH] nir: also move vecN in case of nir_move_copies Reviewed-by: Rhys Perry Part-of: --- src/compiler/nir/nir_opt_sink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_opt_sink.c b/src/compiler/nir/nir_opt_sink.c index a43327300aa..5595cfd61d9 100644 --- a/src/compiler/nir/nir_opt_sink.c +++ b/src/compiler/nir/nir_opt_sink.c @@ -60,7 +60,7 @@ nir_can_move_instr(nir_instr *instr, nir_move_options options) } if ((options & nir_move_copies) && instr->type == nir_instr_type_alu && - nir_instr_as_alu(instr)->op == nir_op_mov) { + nir_op_is_vec(nir_instr_as_alu(instr)->op)) { return true; } -- 2.30.2