Skip to content

Commit

Permalink
[Route] Removed Unreachable Code
Browse files Browse the repository at this point in the history
In an old version of the router, a catch was made to exit the router
with no solution and not to retry at max bounding box; however, the
function was rewritten to explicitly do this. The old catch statement
was left in the code and was unreachable.

Removed the unreachable code.
  • Loading branch information
AlexandreSinger committed Jun 10, 2024
1 parent 62fa97e commit 4fcf92a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions vpr/src/route/connection_router.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@ std::tuple<bool, t_heap*> ConnectionRouter<Heap>::timing_driven_route_connection
return std::make_tuple(true, nullptr);
}

if (cheapest == nullptr) {
VTR_LOG("%s\n", describe_unrouteable_connection(source_node, sink_node, is_flat_).c_str());
return std::make_tuple(false, nullptr);
}

return std::make_tuple(false, cheapest);
}

Expand Down

0 comments on commit 4fcf92a

Please sign in to comment.