3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-23 14:23:41 +00:00

No need for looping splitfanout

This commit is contained in:
Akash Levy 2024-10-25 15:51:46 -07:00
parent 038c562493
commit b65ddf9aa5

View file

@ -207,17 +207,11 @@ struct SplitfanoutPass : public Pass {
int count_split_pre = 0; int count_split_pre = 0;
int count_split_post = 0; int count_split_post = 0;
while (1) { SplitfanoutWorker worker(module);
SplitfanoutWorker worker(module); for (auto cell : worker.toposort.sorted) {
bool did_something = false; int n = worker.split(module->cell(cell));
for (auto cell : worker.toposort.sorted) { count_split_pre += (n != 0);
int n = worker.split(module->cell(cell)); count_split_post += n;
did_something |= (n != 0);
count_split_pre += (n != 0);
count_split_post += n;
}
if (!did_something)
break;
} }
if (count_split_pre) if (count_split_pre)