[llvm] r230081 - [RewriteStatepointsForGC] Replace std::map with DenseMap

Philip Reames listmail at philipreames.com
Fri Feb 20 14:48:21 PST 2015

Author: reames
Date: Fri Feb 20 16:48:20 2015
New Revision: 230081

URL: http://llvm.org/viewvc/llvm-project?rev=230081&view=rev
[RewriteStatepointsForGC] Replace std::map with DenseMap

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.


Modified: llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp?rev=230081&r1=230080&r2=230081&view=diff
--- llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp Fri Feb 20 16:48:20 2015
@@ -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

More information about the llvm-commits mailing list