From f1b959dc69ce691adb0e5a57236e062a21585e64 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 22 Dec 2015 11:15:05 +0100 Subject: [PATCH] Run opt_const before check in default scripts --- techlibs/common/prep.cc | 2 ++ techlibs/common/synth.cc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/techlibs/common/prep.cc b/techlibs/common/prep.cc index ebd329746..8bae920d0 100644 --- a/techlibs/common/prep.cc +++ b/techlibs/common/prep.cc @@ -69,6 +69,7 @@ struct PrepPass : public Pass { log("\n"); log(" prep:\n"); log(" proc\n"); + log(" opt_const\n"); log(" opt_clean\n"); log(" check\n"); log(" opt -keepdc\n"); @@ -133,6 +134,7 @@ struct PrepPass : public Pass { if (check_label(active, run_from, run_to, "coarse")) { Pass::call(design, "proc"); + Pass::call(design, "opt_const"); Pass::call(design, "opt_clean"); Pass::call(design, "check"); Pass::call(design, "opt -keepdc"); diff --git a/techlibs/common/synth.cc b/techlibs/common/synth.cc index 9d71feef1..83d00f328 100644 --- a/techlibs/common/synth.cc +++ b/techlibs/common/synth.cc @@ -81,6 +81,7 @@ struct SynthPass : public Pass { log("\n"); log(" coarse:\n"); log(" proc\n"); + log(" opt_const\n"); log(" opt_clean\n"); log(" check\n"); log(" opt\n"); @@ -179,6 +180,7 @@ struct SynthPass : public Pass { if (check_label(active, run_from, run_to, "coarse")) { Pass::call(design, "proc"); + Pass::call(design, "opt_const"); Pass::call(design, "opt_clean"); Pass::call(design, "check"); Pass::call(design, "opt"); -- 2.30.2