From: Clifford Wolf Date: Mon, 25 Apr 2016 08:43:04 +0000 (+0200) Subject: Fixed proc_mux performance bug X-Git-Tag: yosys-0.7~242 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=93e107e455b506731d9114e0dc2644f78797cf0f;p=yosys.git Fixed proc_mux performance bug --- diff --git a/passes/proc/proc_mux.cc b/passes/proc/proc_mux.cc index dcfa212b5..e52c5556e 100644 --- a/passes/proc/proc_mux.cc +++ b/passes/proc/proc_mux.cc @@ -250,6 +250,9 @@ void append_pmux(RTLIL::Module *mod, const RTLIL::SigSpec &signal, const std::ve log_assert(last_mux_cell != NULL); log_assert(when_signal.size() == last_mux_cell->getPort("\\A").size()); + if (when_signal == last_mux_cell->getPort("\\A")) + return; + RTLIL::SigSpec ctrl_sig = gen_cmp(mod, signal, compare, sw); log_assert(ctrl_sig.size() == 1); last_mux_cell->type = "$pmux";