diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-08-23 15:04:00 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-08-23 15:04:00 -0700 |
commit | ca5de78e762172a6c602470560354eff1de73cf7 (patch) | |
tree | 26295345c65c4ea3998fef5e178ba5a9f7013615 /passes/pmgen | |
parent | e85e6e8d452e8f2605214cc40a5b4fc4b0e2cdc2 (diff) | |
download | yosys-ca5de78e762172a6c602470560354eff1de73cf7.tar.gz yosys-ca5de78e762172a6c602470560354eff1de73cf7.tar.bz2 yosys-ca5de78e762172a6c602470560354eff1de73cf7.zip |
Revert "Add a unique argument to pmgen's nusers()"
This reverts commit 1d88887cfdbeedff7dce9024d8fb4ceb014cb2ef.
Diffstat (limited to 'passes/pmgen')
-rw-r--r-- | passes/pmgen/pmgen.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/passes/pmgen/pmgen.py b/passes/pmgen/pmgen.py index 2f2545c22..573722d68 100644 --- a/passes/pmgen/pmgen.py +++ b/passes/pmgen/pmgen.py @@ -458,16 +458,12 @@ with open(outfile, "w") as f: print(" }", file=f) print("", file=f) - print(" int nusers(const SigSpec &sig, bool unique=true) {", file=f) - print(" int i = 0;", file=f) + print(" int nusers(const SigSpec &sig) {", file=f) print(" pool<Cell*> users;", file=f) print(" for (auto bit : sigmap(sig))", file=f) - print(" if (unique)", file=f); - print(" i += GetSize(sigusers[bit]);", file=f); - print(" else", file=f); - print(" for (auto user : sigusers[bit])", file=f) - print(" users.insert(user);", file=f) - print(" return unique ? GetSize(users) : i;", file=f) + print(" for (auto user : sigusers[bit])", file=f) + print(" users.insert(user);", file=f) + print(" return GetSize(users);", file=f) print(" }", file=f) print("", file=f) |