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:
parent
038c562493
commit
b65ddf9aa5
1 changed files with 5 additions and 11 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue