@@ -494,8 +494,7 @@ RouteTree::update_from_heap(t_heap* hptr,
494494 const t_conn_cost_params cost_params,
495495 const Netlist<>& net_list,
496496 const ParentNetId& net_id,
497- const int itry,
498- bool profile_lookahead) {
497+ const int itry) {
499498 /* Lock the route tree for writing. At least on Linux this shouldn't have an impact on single-threaded code */
500499 std::unique_lock<std::mutex> write_lock (_write_mutex);
501500
@@ -508,8 +507,7 @@ RouteTree::update_from_heap(t_heap* hptr,
508507 cost_params,
509508 itry,
510509 net_list,
511- net_id,
512- profile_lookahead);
510+ net_id);
513511
514512 if (!start_of_new_subtree_rt_node)
515513 return {vtr::nullopt , *sink_rt_node};
@@ -539,8 +537,7 @@ RouteTree::add_subtree_from_heap(t_heap* hptr,
539537 const t_conn_cost_params cost_params,
540538 const int itry,
541539 const Netlist<>& net_list,
542- const ParentNetId& net_id,
543- bool profile_lookahead) {
540+ const ParentNetId& net_id) {
544541 auto & device_ctx = g_vpr_ctx.device ();
545542 const auto & rr_graph = device_ctx.rr_graph ;
546543 auto & route_ctx = g_vpr_ctx.routing ();
@@ -574,15 +571,13 @@ RouteTree::add_subtree_from_heap(t_heap* hptr,
574571 }
575572 new_branch_iswitches.push_back (new_iswitch);
576573
577- if (profile_lookahead) {
578- g_vpr_ctx.mutable_routing ().lookahead_profiler .record (itry,
579- target_net_pin_index,
580- cost_params,
581- router_lookahead,
582- net_id,
583- net_list,
584- new_branch_inodes);
585- }
574+ g_vpr_ctx.mutable_routing ().lookahead_profiler .record (itry,
575+ target_net_pin_index,
576+ cost_params,
577+ router_lookahead,
578+ net_id,
579+ net_list,
580+ new_branch_inodes);
586581
587582 /* Build the new tree branch starting from the existing node we found */
588583 RouteTreeNode* last_node = _rr_node_to_rt_node[new_inode];
0 commit comments