ir3: add braces around complex if/else block

Will need to add code to one of the blocks in the next commit.

Signed-off-by: Job Noorman <jnoorman@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33489>
This commit is contained in:
Job Noorman 2025-02-11 09:13:26 +01:00 committed by Marge Bot
parent 2e0d5ccd91
commit 922bfe4b6e

View file

@ -2294,13 +2294,14 @@ handle_block(struct ra_ctx *ctx, struct ir3_block *block)
}
foreach_instr (instr, &block->instr_list) {
if (instr->opc == OPC_META_PHI)
if (instr->opc == OPC_META_PHI) {
handle_phi(ctx, instr->dsts[0]);
else if (instr->opc == OPC_META_INPUT ||
instr->opc == OPC_META_TEX_PREFETCH)
} else if (instr->opc == OPC_META_INPUT ||
instr->opc == OPC_META_TEX_PREFETCH) {
handle_input(ctx, instr);
else
} else {
break;
}
}
/* After this point, every live-in/phi/input has an interval assigned to