Skip to content

Commit 3eae094

Browse files
committed
mpl: check Pusher moves overlaps correctly
Signed-off-by: João Mai <jmai@precisioninno.com>
1 parent 52e5336 commit 3eae094

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/mpl/src/pusher.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,16 +179,15 @@ void Pusher::pushMacroClusterToCoreBoundaries(
179179
}
180180

181181
std::vector<HardMacro*> hard_macros = macro_cluster->getHardMacros();
182+
// Check based on the shape of the macro cluster to avoid iterating each
183+
// of its HardMacros.
184+
odb::Rect cluster_box = macro_cluster->getBBox();
182185

183186
for (const auto& [boundary, distance] : boundaries_distance) {
184187
if (distance == 0) {
185188
continue;
186189
}
187190

188-
// Check based on the shape of the macro cluster to avoid iterating each
189-
// of its HardMacros.
190-
odb::Rect cluster_box = macro_cluster->getBBox();
191-
192191
moveMacroClusterBox(cluster_box, boundary, distance);
193192

194193
debugPrint(logger_,

0 commit comments

Comments
 (0)