Remove mapped_mod when done
authorEddie Hung <eddie@fpgeh.com>
Mon, 27 May 2019 19:19:21 +0000 (12:19 -0700)
committerEddie Hung <eddie@fpgeh.com>
Mon, 27 May 2019 19:19:21 +0000 (12:19 -0700)
passes/techmap/abc9.cc

index 475508e02db3814dc67cc6d794e71b666ad55bb5..acbab959e72f0aeee75411f569cadf3e59171e1b 100644 (file)
@@ -937,6 +937,8 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::stri
                //log("ABC RESULTS:        internal signals: %8d\n", int(signal_list.size()) - in_wires - out_wires);
                log("ABC RESULTS:           input signals: %8d\n", in_wires);
                log("ABC RESULTS:          output signals: %8d\n", out_wires);
+
+               design->remove(mapped_mod);
        }
        //else
        //{