freedreno/ir3/print: print left/right neighbors too
authorRob Clark <robclark@freedesktop.org>
Tue, 11 Aug 2015 20:09:48 +0000 (16:09 -0400)
committerRob Clark <robclark@freedesktop.org>
Wed, 12 Aug 2015 22:37:43 +0000 (18:37 -0400)
When debugging compiler, this is useful to see.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_print.c

index f377982..07e03d2 100644 (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);