heap: Fix updating of chain cells

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2026-05-04 13:10:45 +02:00
parent ec1b3fde8f
commit 92c392f5f5
1 changed files with 1 additions and 1 deletions

View File

@ -859,7 +859,7 @@ class HeAPPlacer
for (auto cell : place_cells) {
chain_size[cell->name] = 1;
if (cell->cluster != ClusterId()) {
const auto base = cell_locs[cell->name];
const auto base = cell_locs[ctx->getClusterRootCell(cell->cluster)->name];
for (auto child : cluster2cells.at(cell->cluster)) {
if (child != cell)
chain_size[cell->name]++;