ir3/dce: Support multiple destinations
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14107>
This commit is contained in:
parent
89217f636c
commit
a6be8fd0ea
|
@ -53,8 +53,10 @@ instr_dce(struct ir3_instruction *instr, bool falsedep)
|
|||
if (ir3_instr_check_mark(instr))
|
||||
return;
|
||||
|
||||
if (writes_gpr(instr))
|
||||
mark_array_use(instr, instr->dsts[0]); /* dst */
|
||||
foreach_dst (dst, instr) {
|
||||
if (is_dest_gpr(dst))
|
||||
mark_array_use(instr, dst);
|
||||
}
|
||||
|
||||
foreach_src (reg, instr)
|
||||
mark_array_use(instr, reg); /* src */
|
||||
|
|
Loading…
Reference in New Issue