mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-06 11:20:27 +00:00
More use of IdString::in()
This commit is contained in:
parent
d8a2aaa463
commit
4cfefae21e
7 changed files with 38 additions and 40 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue