Skip to content

Commit bccca16

Browse files
removed unsused argument
1 parent c4beebe commit bccca16

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

vpr/src/route/router_lookahead_extended_map.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,7 @@ std::pair<float, int> ExtendedMapLookahead::run_dijkstra(RRNodeId start_node,
399399
path_count++;
400400
this->add_paths<Entry>(start_node, current, *paths, routing_costs);
401401
} else {
402-
util::expand_dijkstra_neighbours(device_ctx.rr_nodes,
403-
current, paths, node_expanded, &pq);
402+
util::expand_dijkstra_neighbours(current, paths, node_expanded, &pq);
404403
(*node_expanded)[size_t(node)] = true;
405404
}
406405
}

vpr/src/route/router_lookahead_map_utils.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ util::Cost_Entry util::Expansion_Cost_Entry::get_median_entry() const {
252252
}
253253

254254
template<typename Entry>
255-
void expand_dijkstra_neighbours(const t_rr_graph_storage& rr_nodes,
256-
const Entry& parent_entry,
255+
void expand_dijkstra_neighbours(const Entry& parent_entry,
257256
std::vector<util::Search_Path>* paths,
258257
std::vector<bool>* node_expanded,
259258
std::priority_queue<Entry,
@@ -263,7 +262,6 @@ void expand_dijkstra_neighbours(const t_rr_graph_storage& rr_nodes,
263262
const auto& rr_graph = device_ctx.rr_graph;
264263
RRNodeId parent = parent_entry.rr_node;
265264

266-
auto& parent_node = rr_nodes[size_t(parent)];
267265
for (int iedge = 0; iedge < rr_graph.num_edges(parent); iedge++) {
268266
int child_node_ind = size_t(rr_graph.edge_sink_node(RRNodeId(parent), iedge));
269267
int switch_ind = rr_graph.edge_switch(parent, iedge);
@@ -287,15 +285,13 @@ void expand_dijkstra_neighbours(const t_rr_graph_storage& rr_nodes,
287285
}
288286
}
289287

290-
template void expand_dijkstra_neighbours(const t_rr_graph_storage& rr_nodes,
291-
const PQ_Entry_Delay& parent_entry,
288+
template void expand_dijkstra_neighbours(const PQ_Entry_Delay& parent_entry,
292289
std::vector<Search_Path>* paths,
293290
std::vector<bool>* node_expanded,
294291
std::priority_queue<PQ_Entry_Delay,
295292
std::vector<PQ_Entry_Delay>,
296293
std::greater<PQ_Entry_Delay>>* pq);
297-
template void expand_dijkstra_neighbours(const t_rr_graph_storage& rr_nodes,
298-
const PQ_Entry_Base_Cost& parent_entry,
294+
template void expand_dijkstra_neighbours(const PQ_Entry_Base_Cost& parent_entry,
299295
std::vector<Search_Path>* paths,
300296
std::vector<bool>* node_expanded,
301297
std::priority_queue<PQ_Entry_Base_Cost,

vpr/src/route/router_lookahead_map_utils.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,7 @@ struct Search_Path {
238238

239239
/* iterates over the children of the specified node and selectively pushes them onto the priority queue */
240240
template<typename Entry>
241-
void expand_dijkstra_neighbours(const t_rr_graph_storage& rr_nodes,
242-
const Entry& parent_entry,
241+
void expand_dijkstra_neighbours(const Entry& parent_entry,
243242
std::vector<Search_Path>* paths,
244243
std::vector<bool>* node_expanded,
245244
std::priority_queue<Entry,

0 commit comments

Comments
 (0)