[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
This commit is contained in:
Nirav Dave 2018-06-05 03:16:28 +00:00
parent 9b0c61e9de
commit e5eb99668c
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ class RAGreedy : public MachineFunctionPass,
public: public:
using EvictorInfo = using EvictorInfo =
std::pair<unsigned /* evictor */, unsigned /* physreg */>; std::pair<unsigned /* evictor */, unsigned /* physreg */>;
using EvicteeInfo = llvm::MapVector<unsigned /* evictee */, EvictorInfo>; using EvicteeInfo = llvm::DenseMap<unsigned /* evictee */, EvictorInfo>;
private: private:
/// Each Vreg that has been evicted in the last stage of selectOrSplit will /// Each Vreg that has been evicted in the last stage of selectOrSplit will