Skip to content

Commit ea9f5be

Browse files
temporarily don't check emptiness
1 parent a31fe80 commit ea9f5be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vpr/src/place/initial_placement.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ static bool try_centroid_placement(const t_pl_macro& pl_macro, PartitionRegion&
493493
//try to find a near location that meet these requirements
494494
bool neighbor_legal_loc = false;
495495
if (!is_loc_legal(centroid_loc, pr, block_type)) {
496-
neighbor_legal_loc = find_centroid_neighbor(centroid_loc, block_type, true);
496+
neighbor_legal_loc = find_centroid_neighbor(centroid_loc, block_type, false);
497497
if (!neighbor_legal_loc) { //no neighbor candidate found
498498
return false;
499499
}
@@ -540,7 +540,7 @@ static int get_y_loc_based_on_macro_direction(t_grid_empty_locs_block_type first
540540
/*
541541
* if the macro member offset is positive, it means that macro head should be placed at the first location of first_macro_loc.
542542
* otherwise, macro head should be placed at the last available location to ensure macro_can_be_placed can check macro location correctly.
543-
*
543+
*
544544
*/
545545
if (pl_macro.members.size() > 1) {
546546
if (pl_macro.members.at(1).offset.y < 0) {
@@ -683,7 +683,7 @@ static bool try_random_placement(const t_pl_macro& pl_macro, const PartitionRegi
683683
to_compressed_loc,
684684
false,
685685
reg_coord.layer_num,
686-
true);
686+
false);
687687
if (!legal) {
688688
//No valid position found
689689
return false;

0 commit comments

Comments
 (0)