pan/bi: Clean up nits in liveness analysis
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 23 Dec 2021 16:08:03 +0000 (11:08 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 22 Feb 2022 16:57:30 +0000 (16:57 +0000)
Fix minor silly things.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14298>

src/panfrost/bifrost/bi_liveness.c

index c34edf0..493b06d 100644 (file)
@@ -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);