ir3: clear instruction uses when cloned
Clones do not share the uses of the cloned instruction. Signed-off-by: Job Noorman <jnoorman@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33816>
This commit is contained in:
@@ -842,6 +842,7 @@ ir3_instr_clone(struct ir3_instruction *instr)
|
||||
*new_instr = *instr;
|
||||
new_instr->dsts = dsts;
|
||||
new_instr->srcs = srcs;
|
||||
new_instr->uses = NULL;
|
||||
list_inithead(&new_instr->rpt_node);
|
||||
|
||||
insert_instr(ir3_before_terminator(instr->block), new_instr);
|
||||
|
||||
Reference in New Issue
Block a user