Skip to content

Commit f1b959d

Browse files
committed
Run opt_const before check in default scripts
1 parent ab0c44d commit f1b959d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

techlibs/common/prep.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ struct PrepPass : public Pass {
6969
log("\n");
7070
log(" prep:\n");
7171
log(" proc\n");
72+
log(" opt_const\n");
7273
log(" opt_clean\n");
7374
log(" check\n");
7475
log(" opt -keepdc\n");
@@ -133,6 +134,7 @@ struct PrepPass : public Pass {
133134
if (check_label(active, run_from, run_to, "coarse"))
134135
{
135136
Pass::call(design, "proc");
137+
Pass::call(design, "opt_const");
136138
Pass::call(design, "opt_clean");
137139
Pass::call(design, "check");
138140
Pass::call(design, "opt -keepdc");

techlibs/common/synth.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ struct SynthPass : public Pass {
8181
log("\n");
8282
log(" coarse:\n");
8383
log(" proc\n");
84+
log(" opt_const\n");
8485
log(" opt_clean\n");
8586
log(" check\n");
8687
log(" opt\n");
@@ -179,6 +180,7 @@ struct SynthPass : public Pass {
179180
if (check_label(active, run_from, run_to, "coarse"))
180181
{
181182
Pass::call(design, "proc");
183+
Pass::call(design, "opt_const");
182184
Pass::call(design, "opt_clean");
183185
Pass::call(design, "check");
184186
Pass::call(design, "opt");

0 commit comments

Comments
 (0)