diff --git a/src/panfrost/bifrost/bi_liveness.c b/src/panfrost/bifrost/bi_liveness.c index 6c8070337d5..4d6c97a86a9 100644 --- a/src/panfrost/bifrost/bi_liveness.c +++ b/src/panfrost/bifrost/bi_liveness.c @@ -91,9 +91,6 @@ liveness_block_update(bi_block *blk, unsigned temp_count) void bi_compute_liveness(bi_context *ctx) { - if (ctx->has_liveness) - return; - unsigned temp_count = bi_max_temp(ctx); u_worklist worklist; @@ -126,14 +123,4 @@ bi_compute_liveness(bi_context *ctx) } u_worklist_fini(&worklist); - - ctx->has_liveness = true; -} - -/* Once liveness data is no longer valid, call this */ - -void -bi_invalidate_liveness(bi_context *ctx) -{ - ctx->has_liveness = false; } diff --git a/src/panfrost/bifrost/bi_opt_dce.c b/src/panfrost/bifrost/bi_opt_dce.c index b0901bb2f71..9b3595265e1 100644 --- a/src/panfrost/bifrost/bi_opt_dce.c +++ b/src/panfrost/bifrost/bi_opt_dce.c @@ -32,7 +32,6 @@ bi_opt_dead_code_eliminate(bi_context *ctx) { unsigned temp_count = bi_max_temp(ctx); - bi_invalidate_liveness(ctx); bi_compute_liveness(ctx); bi_foreach_block_rev(ctx, block) { diff --git a/src/panfrost/bifrost/bi_ra.c b/src/panfrost/bifrost/bi_ra.c index 9dbe5ccbc85..31950ee9a29 100644 --- a/src/panfrost/bifrost/bi_ra.c +++ b/src/panfrost/bifrost/bi_ra.c @@ -780,7 +780,6 @@ bi_register_allocate(bi_context *ctx) /* Try with reduced register pressure to improve thread count */ if (ctx->arch >= 7) { - bi_invalidate_liveness(ctx); l = bi_allocate_registers(ctx, &success, false); if (success) { @@ -793,7 +792,6 @@ bi_register_allocate(bi_context *ctx) /* Otherwise, use the register file and spill until we succeed */ while (!success && ((iter_count--) > 0)) { - bi_invalidate_liveness(ctx); l = bi_allocate_registers(ctx, &success, true); if (success) { diff --git a/src/panfrost/bifrost/bi_validate.c b/src/panfrost/bifrost/bi_validate.c index d6eab037543..0b03b71a3c6 100644 --- a/src/panfrost/bifrost/bi_validate.c +++ b/src/panfrost/bifrost/bi_validate.c @@ -40,7 +40,6 @@ bi_validate_initialization(bi_context *ctx) /* Calculate the live set */ bi_block *entry = bi_entry_block(ctx); unsigned temp_count = bi_max_temp(ctx); - bi_invalidate_liveness(ctx); bi_compute_liveness(ctx); /* Validate that the live set is indeed empty */ diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index 1636492cc6f..794c80d080d 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -763,9 +763,6 @@ typedef struct { unsigned ssa_alloc; unsigned reg_alloc; - /* Analysis results */ - bool has_liveness; - /* Mask of UBOs that need to be uploaded */ uint32_t ubo_mask; @@ -1087,7 +1084,6 @@ bool bi_opt_constant_fold(bi_context *ctx); void bi_compute_liveness(bi_context *ctx); void bi_liveness_ins_update(uint8_t *live, bi_instr *ins, unsigned max); -void bi_invalidate_liveness(bi_context *ctx); void bi_postra_liveness(bi_context *ctx); uint64_t bi_postra_liveness_ins(uint64_t live, bi_instr *ins);