Restore opt_clean back to original place
authorEddie Hung <eddie@fpgeh.com>
Tue, 9 Jul 2019 21:29:58 +0000 (14:29 -0700)
committerEddie Hung <eddie@fpgeh.com>
Tue, 9 Jul 2019 21:29:58 +0000 (14:29 -0700)
techlibs/xilinx/synth_xilinx.cc

index 7e10a392a7af5ec9fcfad1b967cd243594f8a632..c4877c8af4a32d97e73697bc7ed8f937d36aff44 100644 (file)
@@ -260,6 +260,7 @@ struct SynthXilinxPass : public ScriptPass
                        run("fsm");
                        run("opt -fast");
                        run("memory -nomap");
+                       run("opt_clean");
 
                        if (widemux > 0 || help_mode)
                                run("muxpack", "    ('-widemux' only)");
@@ -270,8 +271,6 @@ struct SynthXilinxPass : public ScriptPass
                        // Also: wide multiplexer inference benefits from this too
                        if (!(nosrl && widemux == 0) || help_mode)
                                run("pmux2shiftx", "(skip if '-nosrl' and '-widemux=0')");
-
-                       run("opt_clean");
                }
 
                if (check_label("bram", "(skip if '-nobram')")) {