From 1bca6059b2f9bd1f7384cbf877a87e9067b98bfa Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 21 Jul 2022 14:47:49 -0400 Subject: [PATCH] pan/bi: Improve register printing Use "r0" style to denote machine registers, consistent with the assembly. Use instead "nr0" for NIR registers so they don't collide. This reduces noise for the average case (either register allocated or almost SSA). Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bi_printer.c.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panfrost/bifrost/bi_printer.c.py b/src/panfrost/bifrost/bi_printer.c.py index 024df694568..b4cc3d8965e 100644 --- a/src/panfrost/bifrost/bi_printer.c.py +++ b/src/panfrost/bifrost/bi_printer.c.py @@ -90,9 +90,9 @@ bi_print_index(FILE *fp, bi_index index) else if (index.type == BI_INDEX_PASS) fprintf(fp, "%s", bir_passthrough_name(index.value)); else if (index.type == BI_INDEX_REGISTER) - fprintf(fp, "br%u", index.value); - else if (index.type == BI_INDEX_NORMAL && index.reg) fprintf(fp, "r%u", index.value); + else if (index.type == BI_INDEX_NORMAL && index.reg) + fprintf(fp, "nr%u", index.value); else if (index.type == BI_INDEX_NORMAL) fprintf(fp, "%u", index.value); else