aco/post-ra: assume scc is going to be overwritten by phis at end of blocks

Cc: mesa-stable
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27855>
This commit is contained in:
Georg Lehmann
2024-02-28 17:34:59 +01:00
committed by Marge Bot
parent a5056b2f93
commit bd93e8372d
@@ -783,6 +783,12 @@ optimize_postRA(Program* program)
for (aco_ptr<Instruction>& instr : block.instructions)
process_instruction(ctx, instr);
/* SCC might get overwritten by copies or swaps from parallelcopies
* inserted by SSA-elimination for linear phis.
*/
if (!block.scc_live_out)
ctx.instr_idx_by_regs[block.index][scc] = overwritten_unknown_instr;
}
/* Cleanup pass