Skip to content

Commit 5f14e15

Browse files
committed
incorporated code review feedback from Martin
1) removed new doMove from BaseMove class 2) removed extra slack check from traverseFaninCone Signed-off-by: Cho Moon <[email protected]>
1 parent 3ea8c50 commit 5f14e15

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

src/rsz/src/BaseMove.hh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,6 @@ class BaseMove : public sta::dbStaState
115115
return false;
116116
}
117117

118-
virtual bool doMove(Instance* drvr,
119-
std::unordered_set<Instance*>& unSwappable)
120-
{
121-
return false;
122-
}
123-
124118
virtual const char* name() = 0;
125119

126120
void init();

src/rsz/src/RepairSetup.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ bool RepairSetup::swapVTCritCells(const OptoParams& params, int& num_viols)
10671067

10681068
// Do VT swap on critical instances for now
10691069
// Other transforms can follow later
1070-
BaseMove* move = resizer_->vt_swap_speed_move_.get();
1070+
VTSwapSpeedMove* move = resizer_->vt_swap_speed_move_.get();
10711071
for (auto crit_inst_slack : crit_insts) {
10721072
if (move->doMove(crit_inst_slack.first, notSwappable)) {
10731073
changed = true;
@@ -1139,7 +1139,7 @@ void RepairSetup::traverseFaninCone(
11391139
if (inst_slack < params.setup_slack_margin) {
11401140
// Update worst slack for this instance
11411141
auto it = crit_insts.find(inst);
1142-
if (it == crit_insts.end() || inst_slack < it->second) {
1142+
if (it == crit_insts.end()) {
11431143
crit_insts[inst] = inst_slack;
11441144
endpoint_insts++;
11451145
debugPrint(logger_,

src/rsz/src/VTSwapMove.hh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ class VTSwapSpeedMove : public BaseMove
1818
PathExpanded* expanded,
1919
float setup_slack_margin) override;
2020

21-
bool doMove(Instance* drvr,
22-
std::unordered_set<Instance*>& notSwappable) override;
21+
bool doMove(Instance* drvr, std::unordered_set<Instance*>& notSwappable);
2322

2423
const char* name() override { return "VTSwapSpeed"; }
2524

0 commit comments

Comments
 (0)