Skip to content

Commit

Permalink
[Warnings] Fixed Unused Variable Warning in Connection Router
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreSinger committed May 24, 2024
1 parent 37c6973 commit 6b89d28
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions vpr/src/route/connection_router.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1126,23 +1126,17 @@ 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]++;
} else {
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++;
Expand Down

0 comments on commit 6b89d28

Please sign in to comment.