dfflegalize: remove redundant check for initialized dlatch
authorPaul Annesley <paul@annesley.cc>
Sun, 17 Oct 2021 01:56:32 +0000 (12:56 +1100)
committerMarcelina Koƛcielnicka <mwk@0x04.net>
Sun, 17 Oct 2021 20:10:37 +0000 (22:10 +0200)
This if condition is repeated verbatim, and I can't imagine a legitimate
way the inputs could change in between. I imagine it's a copy/paste
mistake.

passes/techmap/dfflegalize.cc

index c1e7e557d927a8f61a5fd586e90bcebc7fd4b98b..5210d01eb9814f3b73368d6e8ad255b3d61f2346 100644 (file)
@@ -718,10 +718,6 @@ flip_dqisr:;
                                        goto error;
                                }
 
-                               if (!(supported_dlatch & ~INIT_X)) {
-                                       reason = "initialized dlatch are not supported";
-                                       goto error;
-                               }
                                // If we got here, initialized dlatch is supported, but not this
                                // particular reset+init combination (nor its negation).
                                // The only hope left is breaking down to adff + dff + dlatch + mux.