summaryrefslogtreecommitdiff
path: root/passes/opt/opt_clean.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-02-14 10:23:03 +0100
committerClifford Wolf <clifford@clifford.at>2015-02-14 10:23:03 +0100
commit910556560fbf26df4f2960b7d94039a1f399f1a1 (patch)
tree0275d15fa8aa833995f68784f205b2842a0ccb48 /passes/opt/opt_clean.cc
parentef151b0b30c7b7253aceba6d184e7721a4eff0c0 (diff)
Added $meminit cell type
Diffstat (limited to 'passes/opt/opt_clean.cc')
-rw-r--r--passes/opt/opt_clean.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/opt/opt_clean.cc b/passes/opt/opt_clean.cc
index 6a7e6051..aea34175 100644
--- a/passes/opt/opt_clean.cc
+++ b/passes/opt/opt_clean.cc
@@ -47,7 +47,7 @@ void rmunused_module_cells(Module *module, bool verbose)
if (bit.wire != nullptr)
wire2driver[bit].insert(cell);
}
- if (cell->type == "$memwr" || cell->type == "$assert" || cell->has_keep_attr())
+ if (cell->type.in("$memwr", "$meminit", "$assert") || cell->has_keep_attr())
queue.insert(cell);
else
unused.insert(cell);