ir3/dce: Support multiple destinations

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14107>
This commit is contained in:
Connor Abbott 2021-12-01 16:24:46 +01:00 committed by Marge Bot
parent 89217f636c
commit a6be8fd0ea
1 changed files with 4 additions and 2 deletions

View File

@ -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 */