We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54e7b7c commit b977092Copy full SHA for b977092
src/pad/src/RDLRouter.cpp
@@ -370,8 +370,17 @@ void RDLRouter::route(const std::vector<odb::dbNet*>& nets)
370
auto route_compare
371
= [](const std::shared_ptr<RDLRoute>& lhs,
372
const std::shared_ptr<RDLRoute>& rhs) { return lhs->compare(rhs); };
373
- std::priority_queue route_queue(
374
- routes_.begin(), routes_.end(), route_compare);
+ std::priority_queue<RDLRoutePtr,
+ std::vector<RDLRoutePtr>,
375
+ decltype(route_compare)>
376
+ route_queue;
377
+ for (const auto& route : routes_) {
378
+ if (route->isRouted()) {
379
+ continue;
380
+ }
381
+ // Only add routes that need to routed
382
+ route_queue.push(route);
383
384
385
logger_->info(utl::PAD, 5, "Routing {} nets", nets.size());
386
0 commit comments