From 6b89d28606a9eda683e3a6a51c320eca9caae2a8 Mon Sep 17 00:00:00 2001 From: AlexandreSinger Date: Fri, 24 May 2024 19:30:32 -0400 Subject: [PATCH] [Warnings] Fixed Unused Variable Warning in Connection Router --- vpr/src/route/connection_router.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/vpr/src/route/connection_router.cpp b/vpr/src/route/connection_router.cpp index 8277f6b20cd..9badc59d8f4 100644 --- a/vpr/src/route/connection_router.cpp +++ b/vpr/src/route/connection_router.cpp @@ -1126,15 +1126,10 @@ static inline void update_router_stats(RouterStats* router_stats, } #ifdef VTR_ENABLE_DEBUG_LOGGING - const auto& device_ctx = g_vpr_ctx.device(); auto node_type = rr_graph->node_type(rr_node_id); VTR_ASSERT(node_type != NUM_RR_TYPES); - t_physical_tile_type_ptr physical_type = device_ctx.grid.get_physical_type({rr_graph->node_xlow(rr_node_id), - rr_graph->node_ylow(rr_node_id), - rr_graph->node_layer(rr_node_id)}); - if (is_inter_cluster_node(*rr_graph, - rr_node_id)) { + if (is_inter_cluster_node(*rr_graph, rr_node_id)) { if (is_push) { router_stats->inter_cluster_node_pushes++; router_stats->inter_cluster_node_type_cnt_pushes[node_type]++; @@ -1142,7 +1137,6 @@ static inline void update_router_stats(RouterStats* router_stats, router_stats->inter_cluster_node_pops++; router_stats->inter_cluster_node_type_cnt_pops[node_type]++; } - } else { if (is_push) { router_stats->intra_cluster_node_pushes++;