From 5fdc298e4b144df462c9986990a3bebac7eef1a8 Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Tue, 26 Jan 2021 16:05:32 +0100 Subject: [PATCH] aco/ra: Remove preprocessor guards for print_regs This debug helper isn't used anywhere by default, but compiling it anyway ensures future refactors don't break it. Reviewed-by: Rhys Perry Part-of: --- src/amd/compiler/aco_register_allocation.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index 6233f0449d2..3f8b4d4996d 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -355,8 +355,7 @@ private: /* helper function for debugging */ -#if 0 -void print_regs(ra_ctx& ctx, bool vgprs, RegisterFile& reg_file) +UNUSED void print_regs(ra_ctx& ctx, bool vgprs, RegisterFile& reg_file) { unsigned max = vgprs ? ctx.program->max_reg_demand.vgpr : ctx.program->max_reg_demand.sgpr; PhysRegInterval regs { vgprs ? PhysReg{256} : PhysReg{0}, max }; @@ -418,7 +417,6 @@ void print_regs(ra_ctx& ctx, bool vgprs, RegisterFile& reg_file) else if (prev) printf("]\n"); } -#endif unsigned get_subdword_operand_stride(chip_class chip, const aco_ptr& instr, unsigned idx, RegClass rc)