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 <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17794>
This commit is contained in:
committed by
Marge Bot
parent
aaa2fa4e7a
commit
1bca6059b2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user