Merge pull request #1887 from boqwxp/cleanup_hilomap

Clean up `passes/techmap/hilomap.cc`.
This commit is contained in:
N. Engelhardt 2020-04-09 12:09:44 +02:00 committed by GitHub
commit 14d24bc589
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;