From ccb573298c28d84f3d1dc468ae5a701bb7ee3cf0 Mon Sep 17 00:00:00 2001
From: gatecat <gatecat@ds0.me>
Date: Sat, 17 Dec 2022 10:49:51 +0000
Subject: heap: encourage more spreading of heterogenous chains

Signed-off-by: gatecat <gatecat@ds0.me>
---
 common/place/placer_heap.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/place/placer_heap.cc b/common/place/placer_heap.cc
index 0dfc29e6..339b88e7 100644
--- a/common/place/placer_heap.cc
+++ b/common/place/placer_heap.cc
@@ -663,7 +663,7 @@ class HeAPPlacer
             if (cell->cluster != ClusterId()) {
                 const auto base = cell_locs[cell->name];
                 for (auto child : cluster2cells.at(cell->cluster)) {
-                    if (child->type == cell->type && child != cell)
+                    if (child != cell)
                         chain_size[cell->name]++;
                     Loc offset = ctx->getClusterOffset(child);
                     cell_locs[child->name].x = std::max(0, std::min(max_x, base.x + offset.x));
@@ -856,7 +856,7 @@ class HeAPPlacer
             // Was now placed, ignore
             if (ci->bel != BelId())
                 continue;
-            // log_info("   Legalising %s (%s)\n", top.second.c_str(ctx), ci->type.c_str(ctx));
+            // log_info("   Legalising %s (%s) %d\n", top.second.c_str(ctx), ci->type.c_str(ctx), top.first);
             FastBels::FastBelsData *fb;
             fast_bels.getBelsForCellType(ci->type, &fb);
             int radius = 0;
-- 
cgit v1.2.3