mirror of https://github.com/YosysHQ/yosys.git
Account for maxsubcnt overflowing
This commit is contained in:
parent
b32d6bf403
commit
45c34c87ee
|
@ -217,7 +217,7 @@ void generate_pattern(std::function<void(pm&,std::function<void()>)> run, const
|
||||||
run(matcher, [](){});
|
run(matcher, [](){});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (submodcnt)
|
if (submodcnt && maxsubcnt < (1 << 16))
|
||||||
maxsubcnt *= 2;
|
maxsubcnt *= 2;
|
||||||
|
|
||||||
design->remove(mod);
|
design->remove(mod);
|
||||||
|
|
Loading…
Reference in New Issue