Skip to content

Commit 6b89d28

Browse files
[Warnings] Fixed Unused Variable Warning in Connection Router
1 parent 37c6973 commit 6b89d28

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

vpr/src/route/connection_router.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,23 +1126,17 @@ static inline void update_router_stats(RouterStats* router_stats,
11261126
}
11271127

11281128
#ifdef VTR_ENABLE_DEBUG_LOGGING
1129-
const auto& device_ctx = g_vpr_ctx.device();
11301129
auto node_type = rr_graph->node_type(rr_node_id);
11311130
VTR_ASSERT(node_type != NUM_RR_TYPES);
1132-
t_physical_tile_type_ptr physical_type = device_ctx.grid.get_physical_type({rr_graph->node_xlow(rr_node_id),
1133-
rr_graph->node_ylow(rr_node_id),
1134-
rr_graph->node_layer(rr_node_id)});
11351131

1136-
if (is_inter_cluster_node(*rr_graph,
1137-
rr_node_id)) {
1132+
if (is_inter_cluster_node(*rr_graph, rr_node_id)) {
11381133
if (is_push) {
11391134
router_stats->inter_cluster_node_pushes++;
11401135
router_stats->inter_cluster_node_type_cnt_pushes[node_type]++;
11411136
} else {
11421137
router_stats->inter_cluster_node_pops++;
11431138
router_stats->inter_cluster_node_type_cnt_pops[node_type]++;
11441139
}
1145-
11461140
} else {
11471141
if (is_push) {
11481142
router_stats->intra_cluster_node_pushes++;

0 commit comments

Comments
 (0)