From: Alberto Gonzalez Date: Thu, 9 Apr 2020 05:24:37 +0000 (+0000) Subject: Clean up `passes/techmap/hilomap.cc`. X-Git-Tag: working-ls180~675^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=83222193afbd70b753f627367b1b3867ba651687;p=yosys.git Clean up `passes/techmap/hilomap.cc`. --- diff --git a/passes/techmap/hilomap.cc b/passes/techmap/hilomap.cc index 9ec651aef..5aeb5ea79 100644 --- a/passes/techmap/hilomap.cc +++ b/passes/techmap/hilomap.cc @@ -105,13 +105,9 @@ struct HilomapPass : public Pass { } extra_args(args, argidx, design); - for (auto &it : design->modules_) + for (auto mod : design->selected_modules()) { - module = it.second; - - if (!design->selected(module)) - continue; - + module = mod; last_hi = RTLIL::State::Sm; last_lo = RTLIL::State::Sm;