nir: also move vecN in case of nir_move_copies
authorDaniel Schürmann <daniel@schuermann.dev>
Wed, 24 Jun 2020 10:14:18 +0000 (11:14 +0100)
committerDaniel Schürmann <daniel@schuermann.dev>
Tue, 7 Jul 2020 17:24:28 +0000 (19:24 +0200)
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5622>

src/compiler/nir/nir_opt_sink.c

index a43327300aaae6c5adcbc28aefce5cb8c5609c6c..5595cfd61d98031de1804dced87b5bf5f564ae4d 100644 (file)
@@ -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;
    }