aboutsummaryrefslogtreecommitdiffstats
path: root/passes/opt/muxpack.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-06-07 11:37:52 -0700
committerEddie Hung <eddie@fpgeh.com>2019-06-07 11:37:52 -0700
commit887df8914c64220b9f306b7d21f199fa247224fd (patch)
treece6c04585007620ef83970388f6e80776f79ff59 /passes/opt/muxpack.cc
parent5ab59cd59ee90abc4b6991486854dbe4c3f4d0a4 (diff)
downloadyosys-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.cc12
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;