Run "peepopt" in generic "synth" pass and "synth_ice40"
authorClifford Wolf <clifford@clifford.at>
Tue, 30 Apr 2019 06:10:37 +0000 (08:10 +0200)
committerClifford Wolf <clifford@clifford.at>
Tue, 30 Apr 2019 06:10:37 +0000 (08:10 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
techlibs/common/synth.cc
techlibs/ice40/synth_ice40.cc

index ccfa76e029844ed6c5812320f5e34e1267df2516..e41c0fe97b48688075a2f06c8015ff8962e20e28 100644 (file)
@@ -201,6 +201,8 @@ struct SynthPass : public ScriptPass
                        run("check");
                        run("opt");
                        run("wreduce");
+                       run("peepopt");
+                       run("opt_clean");
                        if (help_mode)
                                run("techmap -map +/cmp2lut.v", " (if -lut)");
                        else
index 8899bfcc4aafdbaa168fb0a20efa2d3ad07fb884..f5249e567980e9136b26341217850aeae299cb34 100644 (file)
@@ -239,6 +239,8 @@ struct SynthIce40Pass : public ScriptPass
                        run("check");
                        run("opt");
                        run("wreduce");
+                       run("peepopt");
+                       run("opt_clean");
                        run("share");
                        run("techmap -map +/cmp2lut.v -D LUT_WIDTH=4");
                        run("opt_expr");