From 68b31f5e99e25c6bbd77af3d51c44bef88026c2f Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Thu, 14 May 2020 00:19:58 -0700 Subject: [PATCH] opt_clean: really make 'clean' identical to 'opt_clean' by rminit too --- passes/opt/opt_clean.cc | 5 ++--- 1 file 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(); -- 2.30.2