Skip to content

Commit 6bd0067

Browse files
Merge pull request #8199 from calewis/move_site_call_in_check_pixel
DPL: Remove extra site calls.
2 parents 9a60ccc + a53245e commit 6bd0067

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/dpl/src/Place.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,11 +871,11 @@ bool Opendp::checkPixels(const Node* cell,
871871
return false;
872872
}
873873

874+
dbSite* site = cell->getSite();
874875
for (GridY y1 = y; y1 < y_end; y1++) {
875876
const bool first_row = (y1 == y);
876877
for (GridX x1 = x; x1 < x_end; x1++) {
877878
const Pixel* pixel = grid_->gridPixel(x1, y1);
878-
auto site = cell->getSite();
879879
if (pixel == nullptr || pixel->cell || !pixel->is_valid
880880
|| (cell->inGroup() && pixel->group != cell->getGroup())
881881
|| (!cell->inGroup() && pixel->group)
@@ -915,7 +915,6 @@ bool Opendp::checkPixels(const Node* cell,
915915
}
916916
}
917917
}
918-
dbSite* site = cell->getDbInst()->getMaster()->getSite();
919918
const auto orient = grid_->getSiteOrientation(x, y, site).value();
920919
return drc_engine_->checkDRC(cell, x, y, orient);
921920
}

0 commit comments

Comments
 (0)