agx: Remove has_liveness

Given we do no metadata tracking, this is an accident waiting to happen.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16268>
This commit is contained in:
Alyssa Rosenzweig 2022-05-01 17:47:22 -04:00
parent 1c6bd0357f
commit 3927a9e911
2 changed files with 0 additions and 8 deletions

View File

@ -411,9 +411,6 @@ typedef struct {
/* Has r0l been zeroed yet due to control flow? */
bool any_cf;
/** Computed metadata */
bool has_liveness;
/* Number of nested control flow structures within the innermost loop. Since
* NIR is just loop and if-else, this is the number of nested if-else
* statements in the loop */

View File

@ -60,9 +60,6 @@ agx_liveness_ins_update(BITSET_WORD *live, agx_instr *I)
void
agx_compute_liveness(agx_context *ctx)
{
if (ctx->has_liveness)
return;
u_worklist worklist;
u_worklist_init(&worklist, ctx->num_blocks, NULL);
@ -142,6 +139,4 @@ agx_compute_liveness(agx_context *ctx)
}
u_worklist_fini(&worklist);
ctx->has_liveness = true;
}