From a24364e4181de75e71615bed93d458fce811582a Mon Sep 17 00:00:00 2001 From: Jakob Sinclair Date: Wed, 1 Apr 2026 14:40:46 +0200 Subject: [PATCH] pan: move discard/kill_ssa flag after index for debug prints Match the style of the disassembler when debug printing BIR. Reviewed-by: Christoph Pillmayer Part-of: --- src/panfrost/compiler/bifrost/bi_printer.c.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/panfrost/compiler/bifrost/bi_printer.c.py b/src/panfrost/compiler/bifrost/bi_printer.c.py index 7254da9c7f4..2227d280310 100644 --- a/src/panfrost/compiler/bifrost/bi_printer.c.py +++ b/src/panfrost/compiler/bifrost/bi_printer.c.py @@ -68,11 +68,6 @@ bir_passthrough_name(unsigned idx) static void bi_print_index(FILE *fp, bi_index index, unsigned nr_regs) { - if (index.discard) - fputs("^", fp); - if (index.kill_ssa) - fputs("!", fp); - if (bi_is_null(index)) fprintf(fp, "_"); else if (index.type == BI_INDEX_CONSTANT) @@ -95,6 +90,9 @@ bi_print_index(FILE *fp, bi_index index, unsigned nr_regs) else UNREACHABLE("Invalid index"); + if (index.discard || index.kill_ssa) + fputs("^", fp); + if (index.offset) fprintf(fp, "[%u]", index.offset);