Clean up `passes/techmap/hilomap.cc`.

This commit is contained in:
Alberto Gonzalez 2020-04-09 05:24:37 +00:00
parent 42e7e44207
commit 83222193af
No known key found for this signature in database
GPG Key ID: 8395A8BA109708B2
1 changed files with 2 additions and 6 deletions

View File

@ -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;