pco: restrict regalloc debug printing

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
Simon Perretta
2025-03-20 12:15:55 +00:00
committed by Marge Bot
parent d10b769130
commit b1aad71f35
+3 -3
View File
@@ -401,7 +401,7 @@ static bool pco_ra_func(pco_func *func,
assert(allocated);
/* TODO: spilling. */
if (PCO_DEBUG_PRINT(RA)) {
if (pco_should_print_shader(func->parent_shader) && PCO_DEBUG_PRINT(RA)) {
printf("RA live ranges:\n");
for (unsigned u = 0; u < num_vars; ++u)
printf(" %c%u: %u, %u\n",
@@ -428,7 +428,7 @@ static bool pco_ra_func(pco_func *func,
unsigned interns = 0;
pco_foreach_instr_in_func_safe (instr, func) {
/*
if (PCO_DEBUG_PRINT(RA))
if (pco_should_print_shader(func->parent_shader) && PCO_DEBUG_PRINT(RA))
pco_print_shader(func->parent_shader, stdout, "ra debug");
*/
@@ -569,7 +569,7 @@ static bool pco_ra_func(pco_func *func,
func->temps = temps;
if (PCO_DEBUG_PRINT(RA)) {
if (pco_should_print_shader(func->parent_shader) && PCO_DEBUG_PRINT(RA)) {
printf(
"RA allocated %u temps, %u vtxins, %u interns from %u SSA vars, %u vregs.\n",
temps,