From: Rob Clark Date: Sun, 22 Mar 2020 19:37:12 +0000 (-0700) Subject: freedreno/ir3/ra: fix array liveranges X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2cc92c747c20613190ba330f22f219d26422cfa;p=mesa.git freedreno/ir3/ra: fix array liveranges Fixes: 1b658533e11 ("freedreno/ir3: extend liverange of arrays") Signed-off-by: Rob Clark Part-of: --- 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); } }