Skip to content

Commit a8308a3

Browse files
committed
Remove redundant partition check code
Signed-off-by: Dusty DeWeese <[email protected]>
1 parent 7385574 commit a8308a3

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

vpr/src/route/rr_graph_storage.cpp

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -787,20 +787,5 @@ void t_rr_graph_storage::reorder(const vtr::vector<RRNodeId, RRNodeId>& order,
787787
}
788788

789789
// Check that edges are still partitioned
790-
if (partitioned_) {
791-
auto& device_ctx = g_vpr_ctx.device();
792-
for (size_t i = 0; i < size(); i++) {
793-
RRNodeId n(i);
794-
bool configurable_partition = true;
795-
for (auto e = first_edge(n);
796-
e < last_edge(n);
797-
e = RREdgeId(size_t(e) + 1)) {
798-
if (device_ctx.rr_switch_inf[edge_switch(e)].configurable()) {
799-
VTR_ASSERT(configurable_partition);
800-
} else {
801-
configurable_partition = false;
802-
}
803-
}
804-
}
805-
}
790+
VTR_ASSERT_SAFE(!partitioned_ || validate());
806791
}

0 commit comments

Comments
 (0)