aco: Fix live_var_analysis assert

Fixes: 3d4f6a00b ('aco/spill: allow for disconnected CFG')
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23586>
This commit is contained in:
Friedrich Vock 2023-06-12 13:28:11 +02:00 committed by Marge Bot
parent 7f3cfcc96a
commit 3ea01b86f0

View file

@ -319,7 +319,7 @@ process_live_temps_per_block(Program* program, live& lives, Block* block, unsign
phi_idx--;
}
assert(block->index != 0 || (new_demand == RegisterDemand() && live.empty()));
assert(!block->linear_preds.empty() || (new_demand == RegisterDemand() && live.empty()));
}
unsigned