Further clean up `passes/sat/freduce.cc`.
authorAlberto Gonzalez <boqwxp@airmail.cc>
Mon, 30 Mar 2020 16:25:30 +0000 (16:25 +0000)
committerAlberto Gonzalez <boqwxp@airmail.cc>
Mon, 30 Mar 2020 16:25:30 +0000 (16:25 +0000)
Co-Authored-By: Eddie Hung <eddie@fpgeh.com>
passes/sat/freduce.cc

index 7dfc1765fc76fd3bdc6fc43179b9d8ea291a5793..54016e52802bf1b8504a5053bbf9df670912e11e 100644 (file)
@@ -828,9 +828,8 @@ struct FreducePass : public Pass {
                extra_args(args, argidx, design);
 
                int bitcount = 0;
-               for (auto module : design->modules()) {
-                       if (design->selected(module))
-                               bitcount += FreduceWorker(design, module).run();
+               for (auto module : design->selected_modules()) {
+                       bitcount += FreduceWorker(design, module).run();
                }
 
                log("Rewired a total of %d signal bits.\n", bitcount);