From 3efc14f5ad856842725a96af0a49c046c622a52d Mon Sep 17 00:00:00 2001 From: Paul Annesley Date: Sun, 17 Oct 2021 12:56:32 +1100 Subject: [PATCH] dfflegalize: remove redundant check for initialized dlatch 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 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/passes/techmap/dfflegalize.cc b/passes/techmap/dfflegalize.cc index c1e7e557d..5210d01eb 100644 --- a/passes/techmap/dfflegalize.cc +++ b/passes/techmap/dfflegalize.cc @@ -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. -- 2.30.2