@@ -45,8 +45,6 @@ int LatencyBalancer::run()
4545 33 ,
4646 " Balancing latency for clock {}" ,
4747 root_->getClock ().getSdcName ());
48- worseDelay_ = std::numeric_limits<float >::min ();
49- delayBufIndex_ = 0 ;
5048 initSta ();
5149 findLeafBuilders (root_);
5250 buildGraph (root_->getTopInputNet ());
@@ -136,8 +134,8 @@ void LatencyBalancer::buildGraph(odb::dbNet* clkInputNet)
136134 }
137135 int builderSrcId = graph_.size ();
138136 GraphNode builderSrcNode
139- = GraphNode (builderSrcId, rootSrcName, rootOutputITerm);
140- graph_.push_back (builderSrcNode);
137+ = GraphNode (builderSrcId, std::move ( rootSrcName) , rootOutputITerm);
138+ graph_.push_back (std::move ( builderSrcNode) );
141139
142140 std::stack<int > visitNode;
143141 visitNode.push (builderSrcId);
@@ -164,7 +162,7 @@ void LatencyBalancer::buildGraph(odb::dbNet* clkInputNet)
164162 odb::dbInst* sinkInst = sinkIterm->getInst ();
165163 std::string sinkName = sinkInst->getName ();
166164 GraphNode sinkNode = GraphNode (sinkId, sinkName, sinkIterm);
167- graph_.push_back (sinkNode);
165+ graph_.push_back (std::move ( sinkNode) );
168166 graph_[driverId].childrenIds .push_back (sinkId);
169167
170168 if (inst2builder_.find (sinkName) != inst2builder_.end ()) {
@@ -440,7 +438,7 @@ void LatencyBalancer::balanceLatencies(int nodeId)
440438 if (!previouBufToInsert) {
441439 previouBufToInsert = bufToInsert;
442440 sinksInput.clear ();
443- sinksInput = children;
441+ sinksInput = std::move ( children) ;
444442 continue ;
445443 }
446444
@@ -449,7 +447,7 @@ void LatencyBalancer::balanceLatencies(int nodeId)
449447 = insertDelayBuffers (numBuffers, srcX, srcY, sinksInput);
450448
451449 sinksInput.clear ();
452- sinksInput = children;
450+ sinksInput = std::move ( children) ;
453451 sinksInput.push_back (delauBuffInput);
454452
455453 previouBufToInsert = bufToInsert;
0 commit comments