From 00a5d32d60900ab392986d9b6762efcb609d5497 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 27 Sep 2024 11:22:44 -0400 Subject: [PATCH] agx: reset kill bits in liveness Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_liveness.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/asahi/compiler/agx_liveness.c b/src/asahi/compiler/agx_liveness.c index 74d589926a9..fc4b8c8be0a 100644 --- a/src/asahi/compiler/agx_liveness.c +++ b/src/asahi/compiler/agx_liveness.c @@ -91,8 +91,10 @@ agx_compute_liveness(agx_context *ctx) /* Make live the corresponding source */ agx_foreach_phi_in_block(blk, phi) { agx_index operand = phi->src[agx_predecessor_index(blk, *pred)]; - if (operand.type == AGX_INDEX_NORMAL) + if (operand.type == AGX_INDEX_NORMAL) { BITSET_SET(live, operand.value); + phi->src[agx_predecessor_index(blk, *pred)].kill = false; + } } bool progress = false;