From 93e107e455b506731d9114e0dc2644f78797cf0f Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 25 Apr 2016 10:43:04 +0200 Subject: Fixed proc_mux performance bug --- passes/proc/proc_mux.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'passes/proc') 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"; -- cgit v1.2.3