Fixed submod for non-cleaned designs
authorClifford Wolf <clifford@clifford.at>
Mon, 2 Dec 2013 11:18:07 +0000 (12:18 +0100)
committerClifford Wolf <clifford@clifford.at>
Mon, 2 Dec 2013 11:18:07 +0000 (12:18 +0100)
passes/submod/submod.cc

index a9218914215f1c03319d3932a2d021bdff86e7fe..b241f9d09298a16824dbc741da3378b12551bd20 100644 (file)
@@ -336,8 +336,11 @@ struct SubmodPass : public Pass {
                        }
                        if (module == NULL)
                                log("Nothing selected -> do nothing.\n");
-                       else
+                       else {
+                               Pass::call_newsel(design, stringf("opt_clean %s", module->name.c_str()));
+                               log_header("Continuing SUBMOD pass.\n");
                                SubmodWorker worker(design, module, opt_name);
+                       }
                }
 
                log_pop();