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:
Georg Lehmann 2026-02-10 11:06:50 +01:00 committed by Marge Bot
parent 822da92d68
commit 421a4dacf0

View file

@ -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];
}