summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-03-31 13:56:32 -0400
committerRob Clark <[email protected]>2018-03-31 15:09:42 -0400
commit6514b4e3fdd421eba70ac7531050e43db474f253 (patch)
tree05c3076e7d180755db9f552c9b683e4058412e4d
parente8e3aa68d666d2cad47ef055a1d7b16df4c958d7 (diff)
freedreno/ir3: print array live ranges
This is also useful to see if optmsgs are enabled. Signed-off-by: Rob Clark <[email protected]>
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_ra.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_ra.c b/src/gallium/drivers/freedreno/ir3/ir3_ra.c
index 56e9782befd..0da3d43f6ea 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_ra.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_ra.c
@@ -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);
}
}