Skip to content

Commit f3aeec5

Browse files
committed
mpl: make isLargeFlatCluster const
Signed-off-by: João Mai <jmai@precisioninno.com>
1 parent f0cc43b commit f3aeec5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/mpl/src/clusterEngine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1482,7 +1482,7 @@ void ClusteringEngine::updateSubTree(Cluster* parent)
14821482
}
14831483
}
14841484

1485-
bool ClusteringEngine::isLargeFlatCluster(Cluster* cluster)
1485+
bool ClusteringEngine::isLargeFlatCluster(const Cluster* cluster) const
14861486
{
14871487
return (cluster->getDbModules().empty()
14881488
&& (cluster->getLeafStdCells().size() > max_std_cell_

src/mpl/src/clusterEngine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class ClusteringEngine
202202
void createCluster(odb::dbModule* module, Cluster* parent);
203203
void createCluster(Cluster* parent);
204204
void updateSubTree(Cluster* parent);
205-
bool isLargeFlatCluster(Cluster* cluster);
205+
bool isLargeFlatCluster(const Cluster* cluster) const;
206206
void breakLargeFlatCluster(Cluster* parent);
207207
bool partitionerSolutionIsFullyUnbalanced(const std::vector<int>& solution,
208208
int num_other_cluster_vertices);

0 commit comments

Comments
 (0)