mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-12 02:30:32 +01:00
aco/lower_branches: consider jump target of conditional branches based on vcc
Cc: mesa-stable Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39801>
This commit is contained in:
parent
822da92d68
commit
421a4dacf0
1 changed files with 3 additions and 1 deletions
|
|
@ -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