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:
@@ -411,9 +411,6 @@ typedef struct {
|
|||||||
/* Has r0l been zeroed yet due to control flow? */
|
/* Has r0l been zeroed yet due to control flow? */
|
||||||
bool any_cf;
|
bool any_cf;
|
||||||
|
|
||||||
/** Computed metadata */
|
|
||||||
bool has_liveness;
|
|
||||||
|
|
||||||
/* Number of nested control flow structures within the innermost loop. Since
|
/* 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
|
* NIR is just loop and if-else, this is the number of nested if-else
|
||||||
* statements in the loop */
|
* statements in the loop */
|
||||||
|
@@ -60,9 +60,6 @@ agx_liveness_ins_update(BITSET_WORD *live, agx_instr *I)
|
|||||||
void
|
void
|
||||||
agx_compute_liveness(agx_context *ctx)
|
agx_compute_liveness(agx_context *ctx)
|
||||||
{
|
{
|
||||||
if (ctx->has_liveness)
|
|
||||||
return;
|
|
||||||
|
|
||||||
u_worklist worklist;
|
u_worklist worklist;
|
||||||
u_worklist_init(&worklist, ctx->num_blocks, NULL);
|
u_worklist_init(&worklist, ctx->num_blocks, NULL);
|
||||||
|
|
||||||
@@ -142,6 +139,4 @@ agx_compute_liveness(agx_context *ctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
u_worklist_fini(&worklist);
|
u_worklist_fini(&worklist);
|
||||||
|
|
||||||
ctx->has_liveness = true;
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user