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