mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-21 21:33:40 +00:00
Using design->selected_modules() in opt_*
This commit is contained in:
parent
5b41470e15
commit
a8f4a099b5
5 changed files with 20 additions and 36 deletions
|
@ -468,15 +468,10 @@ struct OptMuxtreePass : public Pass {
|
|||
extra_args(args, 1, design);
|
||||
|
||||
int total_count = 0;
|
||||
for (auto mod : design->modules()) {
|
||||
if (!design->selected_whole_module(mod)) {
|
||||
if (design->selected(mod))
|
||||
log("Skipping module %s as it is only partially selected.\n", log_id(mod));
|
||||
for (auto module : design->selected_whole_modules_warn()) {
|
||||
if (module->has_processes_warn())
|
||||
continue;
|
||||
}
|
||||
if (mod->has_processes_warn())
|
||||
continue;
|
||||
OptMuxtreeWorker worker(design, mod);
|
||||
OptMuxtreeWorker worker(design, module);
|
||||
total_count += worker.removed_count;
|
||||
}
|
||||
if (total_count)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue