From: Eddie Hung Date: Thu, 14 May 2020 07:19:58 +0000 (-0700) Subject: opt_clean: really make 'clean' identical to 'opt_clean' by rminit too X-Git-Tag: working-ls180~556^2~3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=68b31f5e99e25c6bbd77af3d51c44bef88026c2f;p=yosys.git opt_clean: really make 'clean' identical to 'opt_clean' by rminit too --- 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();