Skip to content

Commit 8004a0e

Browse files
committed
dpl: maintain debug variable inside debug guard
Signed-off-by: Augusto Berndt <augusto.berndt@precisioninno.com>
1 parent 65d9034 commit 8004a0e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/dpl/src/dbToOpendp.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,14 @@ void Opendp::importDb()
188188
createArchitecture();
189189
setUpPlacementGroups();
190190

191-
std::map<int, int> height_counts;
192-
for (const auto& node : network_->getNodes()) {
193-
if (node->getType() != Node::CELL) {
194-
continue;
195-
}
196-
height_counts[node->getHeight().v]++;
197-
}
198191
if (logger_->debugCheck(utl::DPL, "hybrid", 1)) {
192+
std::map<int, int> height_counts;
193+
for (const auto& node : network_->getNodes()) {
194+
if (node->getType() != Node::CELL) {
195+
continue;
196+
}
197+
height_counts[node->getHeight().v]++;
198+
}
199199
logger_->report("Cell height distribution ({} unique micron height(s)):",
200200
height_counts.size());
201201
for (const auto& [height, count] : height_counts) {

0 commit comments

Comments
 (0)