Mesa (main): pan/bi: Clean up nits in liveness analysis
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Feb 22 17:10:15 UTC 2022
Module: Mesa
Branch: main
Commit: 91c02893d874f51e41661e5aae63e259197f5e75
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=91c02893d874f51e41661e5aae63e259197f5e75
Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date: Thu Dec 23 11:08:03 2021 -0500
pan/bi: Clean up nits in liveness analysis
Fix minor silly things.
Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14298>
---
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 c34edf0c76c..493b06d4ae8 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);
More information about the mesa-commit
mailing list