diff options
author | gatecat <gatecat@ds0.me> | 2021-03-09 08:48:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-09 08:48:25 +0000 |
commit | d1f44fe91ad29b45c715918c97fba4bb243c631f (patch) | |
tree | 47ebc659fb5b1aca8db61c6de7dcf225f7a618bc /common | |
parent | 326b34887cdf82dc834382f4bf35d120bd4173dd (diff) | |
parent | 0afa0da19f26ccda4172358602bd5ae9cd404f6c (diff) | |
download | nextpnr-d1f44fe91ad29b45c715918c97fba4bb243c631f.tar.gz nextpnr-d1f44fe91ad29b45c715918c97fba4bb243c631f.tar.bz2 nextpnr-d1f44fe91ad29b45c715918c97fba4bb243c631f.zip |
Merge pull request #607 from litghost/add_absl_flat_hash_map
Add absl::flat_hash_map.
Diffstat (limited to 'common')
-rw-r--r-- | common/router2.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/router2.cc b/common/router2.cc index 35042f14..0a3a4e94 100644 --- a/common/router2.cc +++ b/common/router2.cc @@ -27,6 +27,7 @@ */ #include "router2.h" +#include <absl/container/flat_hash_map.h> #include <algorithm> #include <boost/container/flat_map.hpp> #include <chrono> @@ -190,7 +191,7 @@ struct Router2 } } - std::unordered_map<WireId, int> wire_to_idx; + absl::flat_hash_map<WireId, int> wire_to_idx; std::vector<PerWireData> flat_wires; PerWireData &wire_data(WireId w) { return flat_wires[wire_to_idx.at(w)]; } |