diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-08-15 09:23:57 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-08-15 09:23:57 -0700 |
commit | 4cfefae21e872bb5a4dc13473316352da2b7a916 (patch) | |
tree | c15999e09436abf18b284eda38a958ce6e5295e1 /passes/cmds | |
parent | d8a2aaa46379df7a07f4b776b7f9981b04999215 (diff) | |
download | yosys-4cfefae21e872bb5a4dc13473316352da2b7a916.tar.gz yosys-4cfefae21e872bb5a4dc13473316352da2b7a916.tar.bz2 yosys-4cfefae21e872bb5a4dc13473316352da2b7a916.zip |
More use of IdString::in()
Diffstat (limited to 'passes/cmds')
-rw-r--r-- | passes/cmds/delete.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/cmds/delete.cc b/passes/cmds/delete.cc index f8d91ea48..5822c09f8 100644 --- a/passes/cmds/delete.cc +++ b/passes/cmds/delete.cc @@ -107,7 +107,7 @@ struct DeletePass : public Pass { for (auto &it : module->cells_) { if (design->selected(module, it.second)) delete_cells.insert(it.second); - if ((it.second->type == "$memrd" || it.second->type == "$memwr") && + if (it.second->type.in("$memrd", "$memwr") && delete_mems.count(it.second->parameters.at("\\MEMID").decode_string()) != 0) delete_cells.insert(it.second); } |