@@ -427,7 +427,7 @@ static bool find_centroid_neighbor(t_pl_loc& centroid_loc,
427
427
for (int rlim = 1 ; rlim <= max_dim/2 ; rlim++) {
428
428
auto search_range = get_compressed_grid_target_search_range (compressed_block_grid,
429
429
compressed_centroid_loc[centroid_loc_layer_num],
430
- first_rlim );
430
+ rlim );
431
431
432
432
int delta_cx = search_range.xmax - search_range.xmin ;
433
433
@@ -480,8 +480,6 @@ static std::vector<ClusterBlockId> find_centroid_loc(const t_pl_macro& pl_macro,
480
480
find_layer = true ;
481
481
}
482
482
std::vector<ClusterBlockId> connected_blocks_to_update;
483
- std::unordered_set<ClusterBlockId> seen_blocks;
484
- seen_blocks.insert (head_blk);
485
483
486
484
// iterate over the from block pins
487
485
for (ClusterPinId pin_id : cluster_ctx.clb_nlist .block_pins (head_blk)) {
@@ -520,7 +518,6 @@ static std::vector<ClusterBlockId> find_centroid_loc(const t_pl_macro& pl_macro,
520
518
VTR_ASSERT (tile_loc.layer_num != OPEN);
521
519
layer_count[tile_loc.layer_num ]++;
522
520
}
523
- seen_blocks.insert (cluster_ctx.clb_nlist .pin_block (sink_pin_id));
524
521
acc_x += tile_loc.x ;
525
522
acc_y += tile_loc.y ;
526
523
acc_weight++;
@@ -541,7 +538,6 @@ static std::vector<ClusterBlockId> find_centroid_loc(const t_pl_macro& pl_macro,
541
538
VTR_ASSERT (tile_loc.layer_num != OPEN);
542
539
layer_count[tile_loc.layer_num ]++;
543
540
}
544
- seen_blocks.insert (cluster_ctx.clb_nlist .pin_block (source_pin));
545
541
acc_x += tile_loc.x ;
546
542
acc_y += tile_loc.y ;
547
543
acc_weight++;
@@ -551,9 +547,6 @@ static std::vector<ClusterBlockId> find_centroid_loc(const t_pl_macro& pl_macro,
551
547
if (is_io_type (cluster_ctx.clb_nlist .block_type (head_blk)) && acc_weight != 0 ) {
552
548
for (const auto & block : cluster_ctx.clb_nlist .blocks ()) {
553
549
if (is_io_type (cluster_ctx.clb_nlist .block_type (block))) {
554
- if (seen_blocks.find (block) != seen_blocks.end ()) {
555
- continue ;
556
- }
557
550
if (is_block_placed (block, block_locs)) {
558
551
acc_x += block_locs[block].loc .x ;
559
552
acc_y += block_locs[block].loc .y ;
0 commit comments