pan: fix to not clear out of bitset range

Fixes: 617f0562bb ("pan: Use bitset instead of bool array in bi_find_loop_blocks")
Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com>
(cherry picked from commit ec24d1afb6)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40359>
This commit is contained in:
Yiwei Zhang 2026-03-05 17:43:01 -08:00 committed by Eric Engestrom
parent d7ee1e68df
commit b88c8f37e4
2 changed files with 2 additions and 2 deletions

View file

@ -2114,7 +2114,7 @@
"description": "pan: fix to not clear out of bitset range",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "617f0562bb1127d53841c33d39f743d179064148",
"notes": null

View file

@ -7086,7 +7086,7 @@ find_all_predecessors(const bi_context *ctx, bi_block *b, BITSET_WORD *out)
assert(out);
assert(b);
BITSET_CLEAR_RANGE(out, 0, ctx->num_blocks);
BITSET_CLEAR_COUNT(out, 0, ctx->num_blocks);
/* If the CFG was one long chain, we would require |blocks|-1 iters to
* propagate the in_loop info all the way through.