Skip to content

Commit c94c8b8

Browse files
committed
[vpr][place] check lower_iter afer adjustment
1 parent 34c7571 commit c94c8b8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

vpr/src/place/move_utils.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,14 +1040,13 @@ bool find_compatible_compressed_loc_in_range(t_logical_block_type_ptr type,
10401040
//The candidates are stored in a flat_map so we can efficiently find the set of valid
10411041
//candidates with upper/lower bound.
10421042
const auto& block_rows = compressed_block_grid.get_column_block_map(to_loc.x, to_layer_num);
1043+
if (!fixed_search_range) {
1044+
adjust_y_axis_search_range(search_range, block_rows);
1045+
}
10431046
auto y_lower_iter = block_rows.lower_bound(search_range.ymin);
10441047
if (y_lower_iter == block_rows.end()) {
10451048
continue;
10461049
}
1047-
if (!fixed_search_range) {
1048-
adjust_y_axis_search_range(search_range, block_rows);
1049-
}
1050-
10511050
y_lower_iter = block_rows.lower_bound(search_range.ymin);
10521051
auto y_upper_iter = block_rows.upper_bound(search_range.ymax);
10531052
int y_range = std::distance(y_lower_iter, y_upper_iter);

0 commit comments

Comments
 (0)