diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-08-26 17:48:54 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-08-26 17:48:54 -0700 |
commit | 45c34c87eeb0a530a7aae14a0d538c5b6ff53faa (patch) | |
tree | bd3c76f7ad2dca6e3c2a724e522aaf2374f92931 | |
parent | b32d6bf403baa15539e1ceae2c1af6b3c63b2e8e (diff) | |
download | yosys-45c34c87eeb0a530a7aae14a0d538c5b6ff53faa.tar.gz yosys-45c34c87eeb0a530a7aae14a0d538c5b6ff53faa.tar.bz2 yosys-45c34c87eeb0a530a7aae14a0d538c5b6ff53faa.zip |
Account for maxsubcnt overflowing
-rw-r--r-- | passes/pmgen/test_pmgen.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/pmgen/test_pmgen.cc b/passes/pmgen/test_pmgen.cc index 5b0cf0751..2695fe802 100644 --- a/passes/pmgen/test_pmgen.cc +++ b/passes/pmgen/test_pmgen.cc @@ -217,7 +217,7 @@ void generate_pattern(std::function<void(pm&,std::function<void()>)> run, const run(matcher, [](){}); } - if (submodcnt) + if (submodcnt && maxsubcnt < (1 << 16)) maxsubcnt *= 2; design->remove(mod); |