[RewriteStatepointsForGC] Replace std::map with DenseMap
authorPhilip Reames <listmail@philipreames.com>
Fri, 20 Feb 2015 22:48:20 +0000 (22:48 +0000)
committerPhilip Reames <listmail@philipreames.com>
Fri, 20 Feb 2015 22:48:20 +0000 (22:48 +0000)
I'd done the work of extracting the typedef in a previous commit, but didn't actually change it.  Hopefully this will make any subtle changes easier to isolate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230081 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

index 041f405ca48bd8a5b2296b0f6b7ca18725b241ec..51354522e3f11989d75862f1cc3f1bb74df2d5a2 100644 (file)
@@ -95,7 +95,7 @@ namespace {
 // Generally, after the execution of a full findBasePointer call, only the
 // base relation will remain.  Internally, we add a mixture of the two
 // types, then update all the second type to the first type
-typedef std::map<Value *, Value *> DefiningValueMapTy;
+typedef DenseMap<Value *, Value *> DefiningValueMapTy;
 typedef std::set<llvm::Value *> StatepointLiveSetTy;
 
 struct PartiallyConstructedSafepointRecord {
@@ -584,7 +584,7 @@ private:
   Value *base; // non null only if status == base
 };
 
-typedef std::map<Value *, PhiState> ConflictStateMapTy;
+typedef DenseMap<Value *, PhiState> ConflictStateMapTy;
 // Values of type PhiState form a lattice, and this is a helper
 // class that implementes the meet operation.  The meat of the meet
 // operation is implemented in MeetPhiStates::pureMeet