Skip to content

Commit 3a14b4d

Browse files
authored
Merge pull request #8513 from AcKoucher/mpl-remove-itr-check
mpl: remove unneeded iterator check
2 parents 15a6ea5 + 67a6e6d commit 3a14b4d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/mpl/src/clusterEngine.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,12 +1021,7 @@ void ClusteringEngine::buildDataFlowConnections()
10211021

10221022
// bterm, macros or ffs
10231023
for (const auto& [bterm, insts] : data_connections_.io_and_regs) {
1024-
const auto itr = tree_->maps.bterm_to_cluster_id.find(bterm);
1025-
if (itr == tree_->maps.bterm_to_cluster_id.end()) {
1026-
continue;
1027-
}
1028-
1029-
const int driver_id = itr->second;
1024+
const int driver_id = tree_->maps.bterm_to_cluster_id.at(bterm);
10301025
Cluster* driver_cluster = tree_->maps.id_to_cluster.at(driver_id);
10311026

10321027
for (int hops = 0; hops < max_num_of_hops_; hops++) {

0 commit comments

Comments
 (0)