From: Eddie Hung Date: Fri, 7 Jun 2019 18:37:52 +0000 (-0700) Subject: Resolve @cliffordwolf comment on redundant check X-Git-Tag: yosys-0.9~48^2~19 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=887df8914c64220b9f306b7d21f199fa247224fd;p=yosys.git Resolve @cliffordwolf comment on redundant check --- 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;