From d2cc92c747c20613190ba330f22f219d26422cfa Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sun, 22 Mar 2020 12:37:12 -0700 Subject: [PATCH] freedreno/ir3/ra: fix array liveranges Fixes: 1b658533e11 ("freedreno/ir3: extend liverange of arrays") Signed-off-by: Rob Clark Part-of: --- src/freedreno/ir3/ir3_ra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3_ra.c b/src/freedreno/ir3/ir3_ra.c index fa379c3495b..a26c5914f8e 100644 --- a/src/freedreno/ir3/ir3_ra.c +++ b/src/freedreno/ir3/ir3_ra.c @@ -795,7 +795,7 @@ ra_add_interference(struct ir3_ra_ctx *ctx) if (BITSET_TEST(bd->livein, i + arr->base)) { arr->start_ip = MIN2(arr->start_ip, block->start_ip); } - if (BITSET_TEST(bd->livein, i + arr->base)) { + if (BITSET_TEST(bd->liveout, i + arr->base)) { arr->end_ip = MAX2(arr->end_ip, block->end_ip); } } -- 2.30.2