diff options
author | Rob Clark <[email protected]> | 2020-05-15 12:03:56 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-16 20:56:15 +0000 |
commit | 92d6eb4dd539f48355ebfe5408f6a18c5a4c3efd (patch) | |
tree | 9e09b82882723a4ec25e20f4df75554c864a914d /src/freedreno/ir3/ir3_group.c | |
parent | 9eed0c601137a6657d6c0de4c2362549456f9465 (diff) |
freedreno/ir3: add helpers to move instructions
A bit cleaner than open coding the list manipulation. Plus I want to
use it in the next patch, rather than adding more open coded list
futzing.
Signed-off-by: Rob Clark <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5280>
Diffstat (limited to 'src/freedreno/ir3/ir3_group.c')
-rw-r--r-- | src/freedreno/ir3/ir3_group.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/freedreno/ir3/ir3_group.c b/src/freedreno/ir3/ir3_group.c index 182afde222a..61ecd5320b3 100644 --- a/src/freedreno/ir3/ir3_group.c +++ b/src/freedreno/ir3/ir3_group.c @@ -44,8 +44,7 @@ insert_mov(struct ir3_instruction *collect, int idx) * it should be safe to leave at the end of the block it is in: */ if (src->block == collect->block) { - list_delinit(&mov->node); - list_addtail(&mov->node, &collect->node); + ir3_instr_move_before(mov, collect); } } |