aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-08-13 23:36:23 +0000
committerOwen Anderson <resistor@mac.com>2008-08-13 23:36:23 +0000
commit97382166dd09ffafa91015cbf752bac4497abc08 (patch)
treeff88f02dbe0903d1ad5f52db92a72b36e990aebf /lib/CodeGen/RegAllocLinearScan.cpp
parenta60832b0187642d01fd726dc766cd62587f6add0 (diff)
downloadexternal_llvm-97382166dd09ffafa91015cbf752bac4497abc08.zip
external_llvm-97382166dd09ffafa91015cbf752bac4497abc08.tar.gz
external_llvm-97382166dd09ffafa91015cbf752bac4497abc08.tar.bz2
Get rid of a use of std::map.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--lib/CodeGen/RegAllocLinearScan.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp
index 9e5087b..3ab4b02 100644
--- a/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/lib/CodeGen/RegAllocLinearScan.cpp
@@ -64,7 +64,7 @@ namespace {
/// compiled, and keeps track of which register classes have registers that
/// belong to multiple classes or have aliases that are in other classes.
EquivalenceClasses<const TargetRegisterClass*> RelatedRegClasses;
- std::map<unsigned, const TargetRegisterClass*> OneClassForEachPhysReg;
+ DenseMap<unsigned, const TargetRegisterClass*> OneClassForEachPhysReg;
MachineFunction* mf_;
MachineRegisterInfo* mri_;
@@ -221,7 +221,7 @@ void RALinScan::ComputeRelatedRegClasses() {
// belongs to, add info about aliases. We don't need to do this for targets
// without register aliases.
if (HasAliases)
- for (std::map<unsigned, const TargetRegisterClass*>::iterator
+ for (DenseMap<unsigned, const TargetRegisterClass*>::iterator
I = OneClassForEachPhysReg.begin(), E = OneClassForEachPhysReg.end();
I != E; ++I)
for (const unsigned *AS = TRI.getAliasSet(I->first); *AS; ++AS)