diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-02-03 23:45:01 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-02-03 23:45:01 +0100 |
commit | a8f4a099b5f1c51ccd46d875c874bbb1e7e5766b (patch) | |
tree | 35ee64182a3c170e86b1f10a52446d23171eea83 /passes/opt/opt_share.cc | |
parent | 5b41470e151e3b1019e87dfddf900cea51922409 (diff) | |
download | yosys-a8f4a099b5f1c51ccd46d875c874bbb1e7e5766b.tar.gz yosys-a8f4a099b5f1c51ccd46d875c874bbb1e7e5766b.tar.bz2 yosys-a8f4a099b5f1c51ccd46d875c874bbb1e7e5766b.zip |
Using design->selected_modules() in opt_*
Diffstat (limited to 'passes/opt/opt_share.cc')
-rw-r--r-- | passes/opt/opt_share.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/passes/opt/opt_share.cc b/passes/opt/opt_share.cc index 66e29b66a..cce97d65b 100644 --- a/passes/opt/opt_share.cc +++ b/passes/opt/opt_share.cc @@ -314,10 +314,8 @@ struct OptSharePass : public Pass { extra_args(args, argidx, design); int total_count = 0; - for (auto &mod_it : design->modules_) { - if (!design->selected(mod_it.second)) - continue; - OptShareWorker worker(design, mod_it.second, mode_nomux); + for (auto module : design->selected_modules()) { + OptShareWorker worker(design, module, mode_nomux); total_count += worker.total_count; } |