freedreno/ir3/ra: fix array liveranges

Fixes: 1b658533e1 ("freedreno/ir3: extend liverange of arrays")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4272>
This commit is contained in:
Rob Clark 2020-03-22 12:37:12 -07:00 committed by Marge Bot
parent 6347c2ea89
commit d2cc92c747

View file

@ -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);
}
}