Skip to content

Commit 3072bf7

Browse files
litghostacomodi
authored andcommitted
Skip empty windows.
Signed-off-by: Keith Rothman <[email protected]>
1 parent 1e90528 commit 3072bf7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vpr/src/route/connection_box_lookahead_map.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,8 @@ static std::vector<SampleRegion> find_sample_regions(int num_segments) {
940940
for (int y = 0; y < SAMPLE_GRID_SIZE; y++) {
941941
for (int x = 0; x < SAMPLE_GRID_SIZE; x++) {
942942
vtr::Rect<int> window = sample_window(bounding_box, x, y, SAMPLE_GRID_SIZE);
943+
if (window.empty()) continue;
944+
943945
auto histogram = count_histogram(window, segment_counts[i]);
944946
SampleRegion region = {
945947
/* .segment_type = */ i,

0 commit comments

Comments
 (0)