From 3ea01b86f0afa293bffeac013de0f475d8c8cd1f Mon Sep 17 00:00:00 2001 From: Friedrich Vock Date: Mon, 12 Jun 2023 13:28:11 +0200 Subject: [PATCH] aco: Fix live_var_analysis assert Fixes: 3d4f6a00b ('aco/spill: allow for disconnected CFG') Part-of: --- src/amd/compiler/aco_live_var_analysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_live_var_analysis.cpp b/src/amd/compiler/aco_live_var_analysis.cpp index b91221839c6..aa837b3c742 100644 --- a/src/amd/compiler/aco_live_var_analysis.cpp +++ b/src/amd/compiler/aco_live_var_analysis.cpp @@ -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