From 922bfe4b6eb883a439b8f2d7469671e9adb64e2a Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Tue, 11 Feb 2025 09:13:26 +0100 Subject: [PATCH] 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 Part-of: --- src/freedreno/ir3/ir3_ra.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/freedreno/ir3/ir3_ra.c b/src/freedreno/ir3/ir3_ra.c index d12e3761283..97e4815318c 100644 --- a/src/freedreno/ir3/ir3_ra.c +++ b/src/freedreno/ir3/ir3_ra.c @@ -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