Skip to content

Commit dcb2ef9

Browse files
committed
[vpr][place] pass search_range by value
1 parent 51f9e6b commit dcb2ef9

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

vpr/src/place/move_utils.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -686,10 +686,10 @@ bool find_to_loc_uniform(t_logical_block_type_ptr type,
686686
int delta_cx = search_range.xmax - search_range.xmin;
687687

688688

689-
auto block_constrained = is_cluster_constrained(block_id);
689+
auto block_constrained = is_cluster_constrained(b_from);
690690

691691
if (block_constrained) {
692-
bool intersect = intersect_range_limit_with_floorplan_constraints(block_id,
692+
bool intersect = intersect_range_limit_with_floorplan_constraints(b_from,
693693
search_range,
694694
delta_cx,
695695
to_layer_num);
@@ -986,7 +986,7 @@ int find_empty_compatible_subtile(t_logical_block_type_ptr type,
986986
bool find_compatible_compressed_loc_in_range(t_logical_block_type_ptr type,
987987
const int delta_cx,
988988
const t_physical_tile_loc& from_loc,
989-
const t_bb& search_range,
989+
t_bb search_range,
990990
t_physical_tile_loc& to_loc,
991991
bool is_median,
992992
int to_layer_num,
@@ -1234,8 +1234,6 @@ static void adjust_search_range(t_logical_block_type_ptr block_type,
12341234
search_range.ymin = 0;
12351235
search_range.ymax = compressed_block_grid.get_num_rows(to_layer_num) - 1;
12361236
}
1237-
1238-
return true;
12391237
}
12401238

12411239
std::string e_move_result_to_string(e_move_result move_outcome) {

vpr/src/place/move_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ int find_empty_compatible_subtile(t_logical_block_type_ptr type,
332332
bool find_compatible_compressed_loc_in_range(t_logical_block_type_ptr type,
333333
int delta_cx,
334334
const t_physical_tile_loc& from_loc,
335-
const t_bb& search_range,
335+
t_bb search_range,
336336
t_physical_tile_loc& to_loc,
337337
bool is_median,
338338
int to_layer_num,

0 commit comments

Comments
 (0)