freedreno/ir3/print: print left/right neighbors too

When debugging compiler, this is useful to see.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
Rob Clark 2015-08-11 16:09:48 -04:00
parent 0667962103
commit 6e04020dd7

View file

@ -175,6 +175,20 @@ print_instr(struct ir3_instruction *instr, int lvl)
printf("]");
}
if (instr->cp.left) {
printf(", left=_");
printf("[");
print_instr_name(instr->cp.left);
printf("]");
}
if (instr->cp.right) {
printf(", right=_");
printf("[");
print_instr_name(instr->cp.right);
printf("]");
}
if (is_meta(instr)) {
if (instr->opc == OPC_META_FO) {
printf(", off=%d", instr->fo.off);