Code review fixes

This commit is contained in:
Eddie Hung 2020-03-30 08:22:12 -07:00
parent f64d59d824
commit 4d897975a8
2 changed files with 3 additions and 3 deletions

View File

@ -670,13 +670,13 @@ struct MemoryShareWorker
void operator()(RTLIL::Module* module) void operator()(RTLIL::Module* module)
{ {
std::map<std::string, std::pair<std::vector<RTLIL::Cell*>, std::vector<RTLIL::Cell*>>> memindex;
this->module = module; this->module = module;
sigmap.set(module); sigmap.set(module);
sig_to_mux.clear(); sig_to_mux.clear();
conditions_logic_cache.clear(); conditions_logic_cache.clear();
std::map<std::string, std::pair<std::vector<RTLIL::Cell*>, std::vector<RTLIL::Cell*>>> memindex;
sigmap_xmux = sigmap; sigmap_xmux = sigmap;
for (auto cell : module->cells()) for (auto cell : module->cells())
{ {

View File

@ -31,7 +31,7 @@ PRIVATE_NAMESPACE_BEGIN
bool did_something; bool did_something;
void replace_undriven(RTLIL::Module *module, const CellTypes& ct) void replace_undriven(RTLIL::Module *module, const CellTypes &ct)
{ {
SigMap sigmap(module); SigMap sigmap(module);
SigPool driven_signals; SigPool driven_signals;