Skip to content

Commit f99eb2a

Browse files
HackerFooacomodi
authored andcommitted
use vtr::ScopedStartFinishTimer
Signed-off-by: Dustin DeWeese <[email protected]>
1 parent 752d99e commit f99eb2a

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"
@@ -626,18 +627,13 @@ static void check_node_and_range(int inode, enum e_route_type route_type) {
626627
//Checks that all non-configurable edges are in a legal configuration
627628
//This check is slow, so it has been moved out of check_route()
628629
static void check_all_non_configurable_edges() {
629-
VTR_LOG("\n");
630-
VTR_LOG("Checking to ensure non-configurable edges are legal...\n");
631-
630+
vtr::ScopedStartFinishTimer timer("Checking to ensure non-configurable edges are legal");
632631
auto non_configurable_rr_sets = identify_non_configurable_rr_sets();
633-
634632
auto& cluster_ctx = g_vpr_ctx.clustering();
633+
635634
for (auto net_id : cluster_ctx.clb_nlist.nets()) {
636635
check_non_configurable_edges(net_id, non_configurable_rr_sets);
637636
}
638-
639-
VTR_LOG("Completed non-configurable edge check successfully.\n");
640-
VTR_LOG("\n");
641637
}
642638

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

0 commit comments

Comments
 (0)