diff options
author | Owen Anderson <resistor@mac.com> | 2008-08-13 22:28:50 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-08-13 22:28:50 +0000 |
commit | feab1a8e51cbc9733543ffea47af7ea7380ad7b3 (patch) | |
tree | 7c213602218ae2a666ab770409854d449155a11f /include/llvm/CodeGen | |
parent | 36bb2baee6402816b6a99690b05f5abd52e770d3 (diff) | |
download | external_llvm-feab1a8e51cbc9733543ffea47af7ea7380ad7b3.tar.gz external_llvm-feab1a8e51cbc9733543ffea47af7ea7380ad7b3.tar.bz2 external_llvm-feab1a8e51cbc9733543ffea47af7ea7380ad7b3.zip |
Expunge the last uses of std::map from LiveIntervals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index e12bab18b7..a94840e896 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -28,7 +28,6 @@ #include "llvm/ADT/SmallVector.h" #include "llvm/Support/Allocator.h" #include <cmath> -#include <map> namespace llvm { @@ -434,10 +433,10 @@ namespace llvm { bool alsoFoldARestore(int Id, int index, unsigned vr, BitVector &RestoreMBBs, - std::map<unsigned,std::vector<SRInfo> >&RestoreIdxes); + DenseMap<unsigned,std::vector<SRInfo> >&RestoreIdxes); void eraseRestoreInfo(int Id, int index, unsigned vr, BitVector &RestoreMBBs, - std::map<unsigned,std::vector<SRInfo> >&RestoreIdxes); + DenseMap<unsigned,std::vector<SRInfo> >&RestoreIdxes); /// handleSpilledImpDefs - Remove IMPLICIT_DEF instructions which are being /// spilled and create empty intervals for their uses. @@ -460,7 +459,7 @@ namespace llvm { VirtRegMap &vrm, const TargetRegisterClass* rc, SmallVector<int, 4> &ReMatIds, const MachineLoopInfo *loopInfo, unsigned &NewVReg, unsigned ImpUse, bool &HasDef, bool &HasUse, - std::map<unsigned,unsigned> &MBBVRegsMap, + DenseMap<unsigned,unsigned> &MBBVRegsMap, std::vector<LiveInterval*> &NewLIs, float &SSWeight); void rewriteInstructionsForSpills(const LiveInterval &li, bool TrySplit, LiveInterval::Ranges::const_iterator &I, @@ -469,10 +468,10 @@ namespace llvm { VirtRegMap &vrm, const TargetRegisterClass* rc, SmallVector<int, 4> &ReMatIds, const MachineLoopInfo *loopInfo, BitVector &SpillMBBs, - std::map<unsigned,std::vector<SRInfo> > &SpillIdxes, + DenseMap<unsigned,std::vector<SRInfo> > &SpillIdxes, BitVector &RestoreMBBs, - std::map<unsigned,std::vector<SRInfo> > &RestoreIdxes, - std::map<unsigned,unsigned> &MBBVRegsMap, + DenseMap<unsigned,std::vector<SRInfo> > &RestoreIdxes, + DenseMap<unsigned,unsigned> &MBBVRegsMap, std::vector<LiveInterval*> &NewLIs, float &SSWeight); static LiveInterval* createInterval(unsigned Reg); |