From 9da8dc47f98e338861e9125b640a4fc26d42ff42 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 27 Jul 2023 14:05:54 -0400 Subject: [PATCH] agx/dce: Use the helper Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_dce.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/asahi/compiler/agx_dce.c b/src/asahi/compiler/agx_dce.c index c201495..dcabece 100644 --- a/src/asahi/compiler/agx_dce.c +++ b/src/asahi/compiler/agx_dce.c @@ -17,9 +17,8 @@ agx_dce(agx_context *ctx, bool partial) BITSET_WORD *seen = calloc(BITSET_WORDS(ctx->alloc), sizeof(BITSET_WORD)); agx_foreach_instr_global(ctx, I) { - agx_foreach_src(I, s) { - if (I->src[s].type == AGX_INDEX_NORMAL) - BITSET_SET(seen, I->src[s].value); + agx_foreach_ssa_src(I, s) { + BITSET_SET(seen, I->src[s].value); } } -- 2.7.4