opt_clean: really make 'clean' identical to 'opt_clean' by rminit too
authorEddie Hung <eddie@fpgeh.com>
Thu, 14 May 2020 07:19:58 +0000 (00:19 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 14 May 2020 07:31:08 +0000 (00:31 -0700)
passes/opt/opt_clean.cc

index 6271376f1fab51a40baa1d972ec7eeb24dc80588..4e8492f7bb8c72dd16161b9eed3a126a32a7d2af 100644 (file)
@@ -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();