diff options
| author | Nirav Dave <niravd@google.com> | 2018-06-05 03:16:28 +0000 |
|---|---|---|
| committer | Nirav Dave <niravd@google.com> | 2018-06-05 03:16:28 +0000 |
| commit | e5eb99668c3413726c27bb57f8c7560cbd3df51c (patch) | |
| tree | ac22ebea9ab36b4a23c08caee9e47c3885692d5a | |
| parent | 9b0c61e9debd445aa738f150df130c2ee21cd9d1 (diff) | |
| download | bcm5719-llvm-e5eb99668c3413726c27bb57f8c7560cbd3df51c.tar.gz bcm5719-llvm-e5eb99668c3413726c27bb57f8c7560cbd3df51c.zip | |
[RegAllocGreedy] Use simpler map class for EvicteeInfo. NFCI.
RegAlloc keeps a insertion-time ordered map of evictee information,
but we only use membership. Replace MapVector with contextually
equivalent DenseMap which is smaller and faster.
llvm-svn: 333981
| -rw-r--r-- | llvm/lib/CodeGen/RegAllocGreedy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp index 182d9665098..d9ff76b1e4b 100644 --- a/llvm/lib/CodeGen/RegAllocGreedy.cpp +++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp @@ -292,7 +292,7 @@ class RAGreedy : public MachineFunctionPass, public: using EvictorInfo = std::pair<unsigned /* evictor */, unsigned /* physreg */>; - using EvicteeInfo = llvm::MapVector<unsigned /* evictee */, EvictorInfo>; + using EvicteeInfo = llvm::DenseMap<unsigned /* evictee */, EvictorInfo>; private: /// Each Vreg that has been evicted in the last stage of selectOrSplit will |

