Skip to content

Commit 0e44400

Browse files
committed
[vpr][place] remove seen_block
1 parent c57cb6c commit 0e44400

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

vpr/src/place/initial_placement.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ static bool find_centroid_neighbor(t_pl_loc& centroid_loc,
427427
for (int rlim = 1; rlim <= max_dim/2; rlim++) {
428428
auto search_range = get_compressed_grid_target_search_range(compressed_block_grid,
429429
compressed_centroid_loc[centroid_loc_layer_num],
430-
first_rlim);
430+
rlim);
431431

432432
int delta_cx = search_range.xmax - search_range.xmin;
433433

@@ -480,8 +480,6 @@ static std::vector<ClusterBlockId> find_centroid_loc(const t_pl_macro& pl_macro,
480480
find_layer = true;
481481
}
482482
std::vector<ClusterBlockId> connected_blocks_to_update;
483-
std::unordered_set<ClusterBlockId> seen_blocks;
484-
seen_blocks.insert(head_blk);
485483

486484
//iterate over the from block pins
487485
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,
520518
VTR_ASSERT(tile_loc.layer_num != OPEN);
521519
layer_count[tile_loc.layer_num]++;
522520
}
523-
seen_blocks.insert(cluster_ctx.clb_nlist.pin_block(sink_pin_id));
524521
acc_x += tile_loc.x;
525522
acc_y += tile_loc.y;
526523
acc_weight++;
@@ -541,7 +538,6 @@ static std::vector<ClusterBlockId> find_centroid_loc(const t_pl_macro& pl_macro,
541538
VTR_ASSERT(tile_loc.layer_num != OPEN);
542539
layer_count[tile_loc.layer_num]++;
543540
}
544-
seen_blocks.insert(cluster_ctx.clb_nlist.pin_block(source_pin));
545541
acc_x += tile_loc.x;
546542
acc_y += tile_loc.y;
547543
acc_weight++;
@@ -551,9 +547,6 @@ static std::vector<ClusterBlockId> find_centroid_loc(const t_pl_macro& pl_macro,
551547
if (is_io_type(cluster_ctx.clb_nlist.block_type(head_blk)) && acc_weight != 0) {
552548
for (const auto& block : cluster_ctx.clb_nlist.blocks()) {
553549
if (is_io_type(cluster_ctx.clb_nlist.block_type(block))) {
554-
if (seen_blocks.find(block) != seen_blocks.end()) {
555-
continue;
556-
}
557550
if (is_block_placed(block, block_locs)) {
558551
acc_x += block_locs[block].loc.x;
559552
acc_y += block_locs[block].loc.y;

0 commit comments

Comments
 (0)