diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-06-07 11:37:52 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-06-07 11:37:52 -0700 |
commit | 887df8914c64220b9f306b7d21f199fa247224fd (patch) | |
tree | ce6c04585007620ef83970388f6e80776f79ff59 /passes/opt/muxpack.cc | |
parent | 5ab59cd59ee90abc4b6991486854dbe4c3f4d0a4 (diff) | |
download | yosys-887df8914c64220b9f306b7d21f199fa247224fd.tar.gz yosys-887df8914c64220b9f306b7d21f199fa247224fd.tar.bz2 yosys-887df8914c64220b9f306b7d21f199fa247224fd.zip |
Resolve @cliffordwolf comment on redundant check
Diffstat (limited to 'passes/opt/muxpack.cc')
-rw-r--r-- | passes/opt/muxpack.cc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/passes/opt/muxpack.cc b/passes/opt/muxpack.cc index b060389e3..15a646e2e 100644 --- a/passes/opt/muxpack.cc +++ b/passes/opt/muxpack.cc @@ -109,17 +109,9 @@ struct MuxpackWorker } else log_abort(); - { - for (auto bit : a_sig.bits()) - if (sigbit_with_non_chain_users.count(bit)) - goto start_cell; - - Cell *c1 = sig_chain_prev.at(a_sig); - Cell *c2 = cell; - - if (c1->getParam("\\WIDTH") != c2->getParam("\\WIDTH")) + for (auto bit : a_sig.bits()) + if (sigbit_with_non_chain_users.count(bit)) goto start_cell; - } continue; |