Resolve @cliffordwolf comment on redundant check
authorEddie Hung <eddie@fpgeh.com>
Fri, 7 Jun 2019 18:37:52 +0000 (11:37 -0700)
committerEddie Hung <eddie@fpgeh.com>
Fri, 7 Jun 2019 18:37:52 +0000 (11:37 -0700)
passes/opt/muxpack.cc

index b060389e3e7befbb4135017982c178445dedb0ee..15a646e2ea3d47f02fb8825b931d2da1f0a40f7c 100644 (file)
@@ -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;