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);