[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:
parent
9b0c61e9de
commit
e5eb99668c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue