Skip to content

Commit fd14e1e

Browse files
joaomaiAcKoucher
authored andcommitted
mpl: cleanup leftover subtree code
Signed-off-by: João Mai <[email protected]>
1 parent af9ff0d commit fd14e1e

File tree

2 files changed

+1
-38
lines changed

2 files changed

+1
-38
lines changed

src/mpl/src/clusterEngine.cpp

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,12 +1981,6 @@ void ClusteringEngine::breakMixedLeaf(Cluster* mixed_leaf)
19811981
Cluster* parent = mixed_leaf->getParent();
19821982
const float macro_dominated_cluster_ratio = 0.01;
19831983

1984-
// Split by replacement if macro dominated.
1985-
//if (mixed_leaf->getNumStdCell() * macro_dominated_cluster_ratio
1986-
// < mixed_leaf->getNumMacro()) {
1987-
// parent = mixed_leaf->getParent();
1988-
//}
1989-
19901984
mapMacroInCluster2HardMacro(mixed_leaf);
19911985

19921986
std::vector<HardMacro*> hard_macros = mixed_leaf->getHardMacros();
@@ -2027,12 +2021,7 @@ void ClusteringEngine::breakMixedLeaf(Cluster* mixed_leaf)
20272021
// Never use SetInstProperty in the following lines for the reason above!
20282022
std::vector<int> virtual_conn_clusters;
20292023

2030-
// Deal with the std cells
2031-
if (parent == mixed_leaf) {
2032-
addStdCellClusterToSubTree(parent, mixed_leaf, virtual_conn_clusters);
2033-
} else {
2034-
replaceByStdCellCluster(mixed_leaf, virtual_conn_clusters);
2035-
}
2024+
replaceByStdCellCluster(mixed_leaf, virtual_conn_clusters);
20362025

20372026
// Deal with the macros
20382027
for (int i = 0; i < macro_class.size(); i++) {
@@ -2256,29 +2245,6 @@ void ClusteringEngine::groupSingleMacroClusters(
22562245
}
22572246
}
22582247

2259-
void ClusteringEngine::addStdCellClusterToSubTree(
2260-
Cluster* parent,
2261-
Cluster* mixed_leaf,
2262-
std::vector<int>& virtual_conn_clusters)
2263-
{
2264-
std::string std_cell_cluster_name = mixed_leaf->getName();
2265-
auto std_cell_cluster
2266-
= std::make_unique<Cluster>(id_, std_cell_cluster_name, logger_);
2267-
2268-
std_cell_cluster->copyInstances(*mixed_leaf);
2269-
std_cell_cluster->clearLeafMacros();
2270-
std_cell_cluster->setClusterType(StdCellCluster);
2271-
2272-
setClusterMetrics(std_cell_cluster.get());
2273-
2274-
virtual_conn_clusters.push_back(std_cell_cluster->getId());
2275-
2276-
tree_->maps.id_to_cluster[id_++] = std_cell_cluster.get();
2277-
std_cell_cluster->setParent(parent);
2278-
parent->addChild(std::move(std_cell_cluster));
2279-
}
2280-
2281-
// We don't modify the physical hierarchy when spliting by replacement
22822248
void ClusteringEngine::replaceByStdCellCluster(
22832249
Cluster* mixed_leaf,
22842250
std::vector<int>& virtual_conn_clusters)

src/mpl/src/clusterEngine.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,6 @@ class ClusteringEngine
230230
const std::vector<int>& signature_class,
231231
std::vector<int>& interconn_class,
232232
std::vector<int>& macro_class);
233-
void addStdCellClusterToSubTree(Cluster* parent,
234-
Cluster* mixed_leaf,
235-
std::vector<int>& virtual_conn_clusters);
236233
void replaceByStdCellCluster(Cluster* mixed_leaf,
237234
std::vector<int>& virtual_conn_clusters);
238235

0 commit comments

Comments
 (0)