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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user