Skip to content

Commit e347a86

Browse files
HackerFoolitghost
authored andcommitted
use vtr::ScopedStartFinishTimer
Signed-off-by: Dustin DeWeese <[email protected]>
1 parent e8fd53a commit e347a86

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

vpr/src/route/check_route.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "vtr_assert.h"
44
#include "vtr_log.h"
55
#include "vtr_memory.h"
6+
#include "vtr_time.h"
67

78
#include "vpr_types.h"
89
#include "vpr_error.h"
@@ -630,18 +631,13 @@ static void check_node_and_range(int inode, enum e_route_type route_type) {
630631
//Checks that all non-configurable edges are in a legal configuration
631632
//This check is slow, so it has been moved out of check_route()
632633
static void check_all_non_configurable_edges() {
633-
VTR_LOG("\n");
634-
VTR_LOG("Checking to ensure non-configurable edges are legal...\n");
635-
634+
vtr::ScopedStartFinishTimer timer("Checking to ensure non-configurable edges are legal");
636635
auto non_configurable_rr_sets = identify_non_configurable_rr_sets();
637-
638636
auto& cluster_ctx = g_vpr_ctx.clustering();
637+
639638
for (auto net_id : cluster_ctx.clb_nlist.nets()) {
640639
check_non_configurable_edges(net_id, non_configurable_rr_sets);
641640
}
642-
643-
VTR_LOG("Completed non-configurable edge check successfully.\n");
644-
VTR_LOG("\n");
645641
}
646642

647643
//Checks that the specified routing is legal with respect to non-configurable edges

0 commit comments

Comments
 (0)