Skip to content

Commit dcdc95f

Browse files
committed
Removed unnecessary function cost_index_is_invalid
Signed-off-by: Ethan Rogers <[email protected]>
1 parent 32323d1 commit dcdc95f

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

vpr/src/device/rr_graph_view.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,6 @@ class RRGraphView {
249249
return node_storage_.node_cost_index(node);
250250
}
251251

252-
/** @brief Check if a node cost index is invalid (ie less than 0). This function is inlined for runtime optimization. */
253-
bool cost_index_is_invalid(RRNodeId node) const {
254-
return node_storage_.cost_index_is_invalid(node);
255-
}
256-
257252
/** @brief Return the fast look-up data structure for queries from client functions */
258253
const RRSpatialLookup& node_lookup() const {
259254
return node_lookup_;

vpr/src/route/check_rr_graph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ void check_rr_node(int inode, enum e_route_type route_type, const DeviceContext&
327327
"in check_rr_node: inode %d (type %d) had a ptc_num of %d.\n", inode, rr_type, ptc_num);
328328
}
329329

330-
if (rr_graph.cost_index_is_invalid(rr_node) || (size_t)cost_index >= (size_t)device_ctx.rr_indexed_data.size()) {
330+
if (!cost_index || (size_t)cost_index >= (size_t)device_ctx.rr_indexed_data.size()) {
331331
VPR_FATAL_ERROR(VPR_ERROR_ROUTE,
332332
"in check_rr_node: node %d cost index (%d) is out of range.\n", inode, cost_index);
333333
}

0 commit comments

Comments
 (0)