From bfd9cf63dbfefd161de2fc7d5c7fbbce21d5ee9b Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Thu, 11 Jan 2024 14:10:13 +0100 Subject: [PATCH] Ignore $scopeinfo in opt_merge --- passes/opt/opt_merge.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/passes/opt/opt_merge.cc b/passes/opt/opt_merge.cc index 248ba8091..eb3aa462e 100644 --- a/passes/opt/opt_merge.cc +++ b/passes/opt/opt_merge.cc @@ -272,6 +272,9 @@ struct OptMergeWorker if ((!mode_share_all && !ct.cell_known(cell->type)) || !cell->known()) continue; + if (cell->type == ID($scopeinfo)) + continue; + uint64_t hash = hash_cell_parameters_and_connections(cell); auto r = sharemap.insert(std::make_pair(hash, cell)); if (!r.second) {