From f31922faf71208778fb81af9ed3c9ae625ed674f Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 11 Dec 2020 10:59:48 -0500 Subject: [PATCH] pan/bi: Remove bi_is_live_after Unused on Bifrost, and only used on Midgard for something that doesn't apply to Bifrost. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bi_liveness.c | 20 -------------------- src/panfrost/bifrost/compiler.h | 1 - 2 files changed, 21 deletions(-) diff --git a/src/panfrost/bifrost/bi_liveness.c b/src/panfrost/bifrost/bi_liveness.c index 75e48259f25..94275d087e6 100644 --- a/src/panfrost/bifrost/bi_liveness.c +++ b/src/panfrost/bifrost/bi_liveness.c @@ -66,23 +66,3 @@ bi_invalidate_liveness(bi_context *ctx) ctx->has_liveness = false; } - -bool -bi_is_live_after(bi_context *ctx, bi_block *block, bi_instruction *start, int src) -{ - bi_compute_liveness(ctx); - - /* Check whether we're live in the successors */ - - if (pan_liveness_get(block->base.live_out, src, bi_max_temp(ctx))) - return true; - - /* Check the rest of the block for liveness */ - - bi_foreach_instr_in_block_from(block, ins, bi_next_op(start)) { - if (bi_has_arg(ins, src)) - return true; - } - - return false; -} diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index 8219b2c2e0e..c0d71c2ccb2 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -751,7 +751,6 @@ bi_clause *bi_make_singleton(void *memctx, bi_instruction *ins, void bi_compute_liveness(bi_context *ctx); void bi_liveness_ins_update(uint16_t *live, bi_instruction *ins, unsigned max); void bi_invalidate_liveness(bi_context *ctx); -bool bi_is_live_after(bi_context *ctx, bi_block *block, bi_instruction *start, int src); /* Layout */