From 91c02893d874f51e41661e5aae63e259197f5e75 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 23 Dec 2021 11:08:03 -0500 Subject: [PATCH] pan/bi: Clean up nits in liveness analysis Fix minor silly things. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bi_liveness.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panfrost/bifrost/bi_liveness.c b/src/panfrost/bifrost/bi_liveness.c index c34edf0..493b06d 100644 --- a/src/panfrost/bifrost/bi_liveness.c +++ b/src/panfrost/bifrost/bi_liveness.c @@ -69,7 +69,7 @@ liveness_block_update(bi_block *blk, unsigned temp_count) memcpy(live, blk->live_out, temp_count); bi_foreach_instr_in_block_rev(blk, ins) - bi_liveness_ins_update(live, (bi_instr *) ins, temp_count); + bi_liveness_ins_update(live, ins, temp_count); /* To figure out progress, diff live_in */ @@ -105,7 +105,7 @@ bi_compute_liveness(bi_context *ctx) _mesa_hash_pointer, _mesa_key_pointer_equal); - list_for_each_entry(bi_block, block, &ctx->blocks, link) { + bi_foreach_block(ctx, block) { if (block->live_in) ralloc_free(block->live_in); -- 2.7.4