aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-05-14 00:19:58 -0700
committerEddie Hung <eddie@fpgeh.com>2020-05-14 00:31:08 -0700
commit68b31f5e99e25c6bbd77af3d51c44bef88026c2f (patch)
tree59c9a5e308342aa57e9c070857e20f92251902fb
parent27b7ffc75444583bbecc70e2d7e2e84bc321f2cf (diff)
downloadyosys-68b31f5e99e25c6bbd77af3d51c44bef88026c2f.tar.gz
yosys-68b31f5e99e25c6bbd77af3d51c44bef88026c2f.tar.bz2
yosys-68b31f5e99e25c6bbd77af3d51c44bef88026c2f.zip
opt_clean: really make 'clean' identical to 'opt_clean' by rminit too
-rw-r--r--passes/opt/opt_clean.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/passes/opt/opt_clean.cc b/passes/opt/opt_clean.cc
index 6271376f1..4e8492f7b 100644
--- a/passes/opt/opt_clean.cc
+++ b/passes/opt/opt_clean.cc
@@ -611,8 +611,7 @@ struct CleanPass : public Pass {
}
break;
}
- if (argidx < args.size())
- extra_args(args, argidx, design);
+ extra_args(args, argidx, design);
keep_cache.reset(design);
@@ -627,7 +626,7 @@ struct CleanPass : public Pass {
for (auto module : design->selected_whole_modules()) {
if (module->has_processes())
continue;
- rmunused_module(module, purge_mode, ys_debug(), false);
+ rmunused_module(module, purge_mode, ys_debug(), true);
}
log_suppressed();