mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
aco/lower_branches: consider jump target of conditional branches based on vcc
Cc: mesa-stable
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
(cherry picked from commit 421a4dacf0)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39969>
This commit is contained in:
parent
790570ae43
commit
30debe18b6
2 changed files with 4 additions and 2 deletions
|
|
@ -64,7 +64,7 @@
|
|||
"description": "aco/lower_branches: consider jump target of conditional branches based on vcc",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -298,7 +298,9 @@ eliminate_useless_exec_writes_in_block(branch_ctx& ctx, Block& block)
|
|||
|
||||
/* blocks_incoming_exec_used is initialized to true, so this is correct even for loops. */
|
||||
if (instr->opcode == aco_opcode::s_cbranch_scc0 ||
|
||||
instr->opcode == aco_opcode::s_cbranch_scc1) {
|
||||
instr->opcode == aco_opcode::s_cbranch_scc1 ||
|
||||
instr->opcode == aco_opcode::s_cbranch_vccz ||
|
||||
instr->opcode == aco_opcode::s_cbranch_vccnz) {
|
||||
exec_write_used |= ctx.blocks_incoming_exec_used[instr->salu().imm];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue