3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +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_post = 0;
while (1) {
SplitfanoutWorker worker(module);
bool did_something = false;
for (auto cell : worker.toposort.sorted) {
int n = worker.split(module->cell(cell));
did_something |= (n != 0);
count_split_pre += (n != 0);
count_split_post += n;
}
if (!did_something)
break;
SplitfanoutWorker worker(module);
for (auto cell : worker.toposort.sorted) {
int n = worker.split(module->cell(cell));
count_split_pre += (n != 0);
count_split_post += n;
}
if (count_split_pre)