Get rid of a use of std::map.
authorOwen Anderson <resistor@mac.com>
Wed, 13 Aug 2008 23:36:23 +0000 (23:36 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 13 Aug 2008 23:36:23 +0000 (23:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54770 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocLinearScan.cpp

index 9e5087b4a685ae045eed19fcec0a7b317dddd98e..3ab4b026689757866233fc2c4e2184ed78fe9c8a 100644 (file)
@@ -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)