diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-08-31 16:26:01 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-08-31 16:26:01 +0200 |
commit | 92dce21f6e5af4ffec7cbd4ea5e6607ca452a9c8 (patch) | |
tree | 7574cb8d3cc5e56af2efd5b13b84f63469082277 | |
parent | 09b51cb37555d72ffbb0c4afe9a859c6492ffb4f (diff) | |
download | yosys-92dce21f6e5af4ffec7cbd4ea5e6607ca452a9c8.tar.gz yosys-92dce21f6e5af4ffec7cbd4ea5e6607ca452a9c8.tar.bz2 yosys-92dce21f6e5af4ffec7cbd4ea5e6607ca452a9c8.zip |
Using dict<> and pool<> in alumacc pass
-rw-r--r-- | passes/techmap/alumacc.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/passes/techmap/alumacc.cc b/passes/techmap/alumacc.cc index 54c9bc1aa..90563c863 100644 --- a/passes/techmap/alumacc.cc +++ b/passes/techmap/alumacc.cc @@ -98,9 +98,9 @@ struct AlumaccWorker } }; - std::map<RTLIL::SigBit, int> bit_users; - std::map<RTLIL::SigSpec, maccnode_t*> sig_macc; - std::map<RTLIL::SigSig, std::set<alunode_t*>> sig_alu; + dict<RTLIL::SigBit, int> bit_users; + dict<RTLIL::SigSpec, maccnode_t*> sig_macc; + dict<RTLIL::SigSig, pool<alunode_t*, hash_ptr_ops>> sig_alu; int macc_counter, alu_counter; AlumaccWorker(RTLIL::Module *module) : module(module), sigmap(module) @@ -215,7 +215,7 @@ struct AlumaccWorker { while (1) { - std::set<maccnode_t*> delete_nodes; + pool<maccnode_t*, hash_ptr_ops> delete_nodes; for (auto &it : sig_macc) { @@ -267,7 +267,7 @@ struct AlumaccWorker void macc_to_alu() { - std::set<maccnode_t*> delete_nodes; + pool<maccnode_t*, hash_ptr_ops> delete_nodes; for (auto &it : sig_macc) { |