Skip to content

Commit 90955c4

Browse files
authored
Merge pull request #7767 from The-OpenROAD-Project-staging/dbsta-bad-override
dbSta: fix bad override of dbSta::replaceCell
2 parents 4ff4b85 + 03f7382 commit 90955c4

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

src/dbSta/src/dbSta.cc

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -724,17 +724,7 @@ void dbSta::deleteInstance(Instance* inst)
724724

725725
void dbSta::replaceCell(Instance* inst, Cell* to_cell, LibertyCell* to_lib_cell)
726726
{
727-
NetworkEdit* network = networkCmdEdit();
728-
LibertyCell* from_lib_cell = network->libertyCell(inst);
729-
if (sta::equivCells(from_lib_cell, to_lib_cell)) {
730-
replaceEquivCellBefore(inst, to_lib_cell);
731-
network->replaceCell(inst, to_cell);
732-
replaceEquivCellAfter(inst);
733-
} else {
734-
replaceCellBefore(inst, to_lib_cell);
735-
network->replaceCell(inst, to_cell);
736-
replaceCellAfter(inst);
737-
}
727+
Sta::replaceCell(inst, to_cell, to_lib_cell);
738728
}
739729

740730
void dbSta::deleteNet(Net* net)

0 commit comments

Comments
 (0)