freedreno/ir3: print array live ranges
authorRob Clark <robdclark@gmail.com>
Sat, 31 Mar 2018 17:56:32 +0000 (13:56 -0400)
committerRob Clark <robdclark@gmail.com>
Sat, 31 Mar 2018 19:09:42 +0000 (15:09 -0400)
This is also useful to see if optmsgs are enabled.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3_ra.c

index 56e9782befd1540935a80f58373fd963e331901b..0da3d43f6eaf5ef6d9b3afd14f18aa228aeecfb6 100644 (file)
@@ -863,10 +863,16 @@ ra_add_interference(struct ir3_ra_ctx *ctx)
                list_for_each_entry (struct ir3_block, block, &ir->block_list, node) {
                        struct ir3_ra_block_data *bd = block->data;
                        debug_printf("block%u:\n", block_id(block));
-                       print_bitset("def", bd->def, ctx->alloc_count);
-                       print_bitset("use", bd->use, ctx->alloc_count);
-                       print_bitset("l/i", bd->livein, ctx->alloc_count);
-                       print_bitset("l/o", bd->liveout, ctx->alloc_count);
+                       print_bitset("  def", bd->def, ctx->alloc_count);
+                       print_bitset("  use", bd->use, ctx->alloc_count);
+                       print_bitset("  l/i", bd->livein, ctx->alloc_count);
+                       print_bitset("  l/o", bd->liveout, ctx->alloc_count);
+               }
+               list_for_each_entry (struct ir3_array, arr, &ir->array_list, node) {
+                       debug_printf("array%u:\n", arr->id);
+                       debug_printf("  length:   %u\n", arr->length);
+                       debug_printf("  start_ip: %u\n", arr->start_ip);
+                       debug_printf("  end_ip:   %u\n", arr->end_ip);
                }
        }