mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
[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
563a747bd5
commit
8db1c4f08d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user