Skip to content

Commit 8c3ed8d

Browse files
committed
[vpr][place] break out of loop if a legal location is found
1 parent 7dfd4f6 commit 8c3ed8d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vpr/src/place/initial_placement.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,10 @@ static bool find_centroid_neighbor(t_pl_loc& centroid_loc,
449449
search_for_empty,
450450
blk_loc_registry,
451451
rng);
452+
453+
if (legal) {
454+
break;
455+
}
452456
}
453457

454458
if (!legal) {

0 commit comments

Comments
 (0)