Skip to content

Commit ad1f82b

Browse files
committed
tap: code cleanup
Signed-off-by: Osama <osama21@aucegypt.edu>
1 parent feb8d19 commit ad1f82b

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

src/tap/src/tapcell.cpp

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -185,19 +185,11 @@ int Tapcell::placeTapcells(odb::dbMaster* tapcell_master,
185185
}
186186

187187
const odb::Rect row_bb = row->getBBox();
188-
188+
odb::Rect query_box;
189+
row_bb.bloat(-1, query_box);
189190
std::set<odb::dbInst*> row_insts(
190-
fixed_instances.qbegin(boost::geometry::index::intersects(row_bb)),
191+
fixed_instances.qbegin(boost::geometry::index::intersects(query_box)),
191192
fixed_instances.qend());
192-
// remove instances that are only touching the row.
193-
for (auto it = row_insts.begin(); it != row_insts.end();) {
194-
const odb::Rect inst_bb = (*it)->getBBox()->getBox();
195-
if (!row_bb.overlaps(inst_bb)) {
196-
it = row_insts.erase(it);
197-
} else {
198-
++it;
199-
}
200-
}
201193

202194
const int llx = row_bb.xMin();
203195
const int urx = row_bb.xMax();

0 commit comments

Comments
 (0)