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>
(cherry picked from commit 3ea01b86f0)
This commit is contained in:
Friedrich Vock 2023-06-12 13:28:11 +02:00 committed by Eric Engestrom
parent 69df6917c0
commit 5571386b4c
2 changed files with 2 additions and 2 deletions

View file

@ -2299,7 +2299,7 @@
"description": "aco: Fix live_var_analysis assert",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "3d4f6a00b8e8710bbc265f8a5e3050d0550e1491"
},

View file

@ -292,7 +292,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