Skip to content

Commit 3e7199d

Browse files
committed
Wrap the rr_graph_storage::reorder method in validate() assertions
Signed-off-by: Dusty DeWeese <[email protected]>
1 parent 8af5d5a commit 3e7199d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/route/rr_graph_storage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,7 @@ t_rr_graph_view t_rr_graph_storage::view() const {
742742

743743
void t_rr_graph_storage::reorder(const vtr::vector<RRNodeId, RRNodeId>& order,
744744
const vtr::vector<RRNodeId, RRNodeId>& inverse_order) {
745+
VTR_ASSERT_SAFE(validate());
745746
{
746747
auto old_node_storage = node_storage_;
747748

@@ -786,6 +787,5 @@ void t_rr_graph_storage::reorder(const vtr::vector<RRNodeId, RRNodeId>& order,
786787
}
787788
}
788789

789-
// Check that edges are still partitioned
790-
VTR_ASSERT_SAFE(!partitioned_ || validate());
790+
VTR_ASSERT_SAFE(validate());
791791
}

0 commit comments

Comments
 (0)