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 <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8719>
This commit is contained in:
Tony Wasserka 2021-01-26 16:05:32 +01:00
parent 3675aefa84
commit 5fdc298e4b

View file

@ -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<Instruction>& instr, unsigned idx, RegClass rc)