Skip to content

Commit 880eac0

Browse files
committed
cts: avoid unecessary buffer size update
Signed-off-by: arthurjolo <[email protected]>
1 parent a6bbc93 commit 880eac0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/cts/src/TechChar.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,16 +1611,16 @@ void TechChar::create()
16111611
c1,
16121612
piExists);
16131613
// For each possible buffer combination (different sizes).
1614-
unsigned buffersUpdate
1614+
unsigned buffersCombinations
16151615
= getBufferingCombo(masterNames_.size(), solution.instVector.size());
16161616
// clang-format off
16171617
debugPrint(logger_, CTS, "tech char", 1, "create #bufs={} "
16181618
"#soln.instVector.size={}, #bufUpdate={}, #topo={}",
16191619
masterNames_.size(), solution.instVector.size(),
1620-
buffersUpdate, topologiesCreated);
1620+
buffersCombinations, topologiesCreated);
16211621
// clang-format on
16221622

1623-
if (buffersUpdate == 0) {
1623+
if (buffersCombinations == 0) {
16241624
continue;
16251625
}
16261626

@@ -1683,12 +1683,12 @@ void TechChar::create()
16831683
}
16841684
}
16851685
// If the solution is not a pure-wire, update the buffer topologies.
1686-
if (!solution.isPureWire) {
1686+
if (!solution.isPureWire && buffersCombinations > 1) {
16871687
updateBufferTopologies(solution);
16881688
}
1689-
// For pure-wire solution buffersUpdate == 1, so it only runs once.
1690-
buffersUpdate--;
1691-
} while (buffersUpdate != 0);
1689+
// For pure-wire solution buffersCombinations == 1, so it only runs once.
1690+
buffersCombinations--;
1691+
} while (buffersCombinations != 0);
16921692
}
16931693
openStaChar_.reset(nullptr);
16941694
}

0 commit comments

Comments
 (0)