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 */