mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-15 13:28:59 +00:00
Fixed a performance bug in opt_reduce
This commit is contained in:
parent
60f3dc9923
commit
8fd1c269ac
|
@ -368,8 +368,12 @@ struct OptReducePass : public Pass {
|
||||||
for (auto &mod_it : design->modules_) {
|
for (auto &mod_it : design->modules_) {
|
||||||
if (!design->selected(mod_it.second))
|
if (!design->selected(mod_it.second))
|
||||||
continue;
|
continue;
|
||||||
OptReduceWorker worker(design, mod_it.second, do_fine);
|
do {
|
||||||
total_count += worker.total_count;
|
OptReduceWorker worker(design, mod_it.second, do_fine);
|
||||||
|
total_count += worker.total_count;
|
||||||
|
if (worker.total_count == 0)
|
||||||
|
break;
|
||||||
|
} while (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
log("Performed a total of %d changes.\n", total_count);
|
log("Performed a total of %d changes.\n", total_count);
|
||||||
|
|
Loading…
Reference in a new issue