mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 11:40:10 +01:00
i965/fs: Print the maximum register pressure.
Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
391eaa59bd
commit
413622fbef
1 changed files with 3 additions and 1 deletions
|
|
@ -2946,13 +2946,15 @@ fs_visitor::dump_instructions()
|
|||
{
|
||||
calculate_register_pressure();
|
||||
|
||||
int ip = 0;
|
||||
int ip = 0, max_pressure = 0;
|
||||
foreach_list(node, &this->instructions) {
|
||||
backend_instruction *inst = (backend_instruction *)node;
|
||||
max_pressure = MAX2(max_pressure, regs_live_at_ip[ip]);
|
||||
printf("{%3d} %4d: ", regs_live_at_ip[ip], ip);
|
||||
dump_instruction(inst);
|
||||
++ip;
|
||||
}
|
||||
printf("Maximum %3d registers live at once.\n", max_pressure);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue