From 6514b4e3fdd421eba70ac7531050e43db474f253 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sat, 31 Mar 2018 13:56:32 -0400 Subject: [PATCH] freedreno/ir3: print array live ranges This is also useful to see if optmsgs are enabled. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/ir3/ir3_ra.c | 14 ++++++++++---- 1 file 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); } } -- 2.30.2