3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-20 04:43:40 +00:00

semi cleanup

This commit is contained in:
Emil J. Tywoniak 2025-05-23 21:13:02 +02:00
parent 91503e07dc
commit 125797bbb3
5 changed files with 3 additions and 17 deletions

View file

@ -148,11 +148,14 @@ struct ProcRmdeadPass : public Pass {
int total_counter = 0;
for (auto mod : design->modules()) {
log("sniff %s\n", mod->name.c_str());
if (!design->selected(mod))
continue;
log("selected\n");
for (auto &proc_it : mod->processes) {
if (!design->selected(mod, proc_it.second))
continue;
log("module %s is selected\n", log_id(mod));
int counter = 0, full_case_counter = 0;
for (auto switch_it : proc_it.second->root_case.switches)
proc_rmdead(switch_it, counter, full_case_counter);