freedreno/ir3: add helpers to move instructions
[mesa.git] / src / freedreno / ir3 / ir3_a6xx.c
index 39549d44b1d38f205edf22be37988c3ea1ffd94c..a8c6553a518081cb10465586188a2e6395b44631 100644 (file)
@@ -404,8 +404,7 @@ get_atomic_dest_mov(struct ir3_instruction *atomic)
        /* it will have already been appended to the end of the block, which
         * isn't where we want it, so fix-up the location:
         */
-       list_delinit(&mov->node);
-       list_add(&mov->node, &atomic->node);
+       ir3_instr_move_after(mov, atomic);
 
        return atomic->data = mov;
 }