aboutsummaryrefslogtreecommitdiffstats
path: root/passes/cmds/clean_zerowidth.cc
diff options
context:
space:
mode:
Diffstat (limited to 'passes/cmds/clean_zerowidth.cc')
-rw-r--r--passes/cmds/clean_zerowidth.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/cmds/clean_zerowidth.cc b/passes/cmds/clean_zerowidth.cc
index 4e7c68093..bac6b1521 100644
--- a/passes/cmds/clean_zerowidth.cc
+++ b/passes/cmds/clean_zerowidth.cc
@@ -80,7 +80,7 @@ struct CleanZeroWidthPass : public Pass {
if (GetSize(cell->getPort(ID::Q)) == 0) {
module->remove(cell);
}
- } else if (cell->type == ID($pmux)) {
+ } else if (cell->type.in(ID($pmux), ID($bmux), ID($demux))) {
// Remove altogether if WIDTH is 0, replace with
// a connection if S_WIDTH is 0.
if (cell->getParam(ID::WIDTH).as_int() == 0) {