cxxrtl: get rid of -O5 aka `opt_clean -purge` optimization level.
authorwhitequark <whitequark@whitequark.org>
Fri, 22 May 2020 17:44:05 +0000 (17:44 +0000)
committerwhitequark <whitequark@whitequark.org>
Fri, 22 May 2020 19:08:30 +0000 (19:08 +0000)
This isn't actually necessary anymore after scheduling was improved,
and `clean -purge` disrupts the mapping between wires in the input
RTLIL netlist and the output CXXRTL code.

backends/cxxrtl/cxxrtl.cc

index f3ed3f6232542807ff920cfc3e4a4d1590900556..549404184420f0875adc0936d6d7421398e85c62 100644 (file)
@@ -2306,10 +2306,7 @@ struct CxxrtlBackend : public Backend {
                log("        like -O3, and localize public wires not marked (*keep*) if possible.\n");
                log("\n");
                log("    -O5\n");
-               log("        like -O4, and run `opt_clean -purge` first.\n");
-               log("\n");
-               log("    -O6\n");
-               log("        like -O5, and run `proc; flatten` first.\n");
+               log("        like -O4, and run `proc; flatten` first.\n");
                log("\n");
        }
        void execute(std::ostream *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
@@ -2343,13 +2340,10 @@ struct CxxrtlBackend : public Backend {
                extra_args(f, filename, args, argidx);
 
                switch (opt_level) {
-                       case 6:
+                       case 5:
                                worker.max_opt_level = true;
                                worker.run_proc_flatten = true;
                                YS_FALLTHROUGH
-                       case 5:
-                               worker.run_opt_clean_purge = true;
-                               YS_FALLTHROUGH
                        case 4:
                                worker.localize_public = true;
                                YS_FALLTHROUGH