mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
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>
(cherry picked from commit bd93e8372d)
This commit is contained in:
parent
32e278d0af
commit
79fd6ae01b
2 changed files with 7 additions and 1 deletions
|
|
@ -984,7 +984,7 @@
|
|||
"description": "aco/post-ra: assume scc is going to be overwritten by phis at end of blocks",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -748,6 +748,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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue