intel/brw: Don't print IP as part of the dump

The sequential IP cause noise when diffing before/after a pass that
either add or remove instructions.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29114>
This commit is contained in:
Caio Oliveira 2024-05-08 13:33:17 -07:00 committed by Marge Bot
parent fd47f90d37
commit 866b1245e9

View file

@ -2185,7 +2185,7 @@ fs_visitor::dump_instructions_to_file(FILE *file) const
cf_count -= 1;
max_pressure = MAX2(max_pressure, rp.regs_live_at_ip[ip]);
fprintf(file, "{%3d} %4d: ", rp.regs_live_at_ip[ip], ip);
fprintf(file, "{%3d} ", rp.regs_live_at_ip[ip]);
for (unsigned i = 0; i < cf_count; i++)
fprintf(file, " ");
dump_instruction(inst, file);
@ -2196,16 +2196,11 @@ fs_visitor::dump_instructions_to_file(FILE *file) const
}
fprintf(file, "Maximum %3d registers live at once.\n", max_pressure);
} else if (cfg && exec_list_is_empty(&instructions)) {
unsigned ip = 0;
foreach_block_and_inst(block, fs_inst, inst, cfg) {
fprintf(file, "%4d: ", ip);
dump_instruction(inst, file);
ip++;
}
} else {
int ip = 0;
foreach_in_list(fs_inst, inst, &instructions) {
fprintf(file, "%4d: ", ip++);
dump_instruction(inst, file);
}
}