[llvm-commits] [llvm] r158371 - /llvm/trunk/lib/Transforms/Scalar/Reassociate.cpp

Duncan Sands baldrick at free.fr
Tue Jun 12 13:26:43 PDT 2012


Author: baldrick
Date: Tue Jun 12 15:26:43 2012
New Revision: 158371

URL: http://llvm.org/viewvc/llvm-project?rev=158371&view=rev
Log:
Use DenseMap as SmallMap workaround rather than std::map, at Chandler's request.

Modified:
    llvm/trunk/lib/Transforms/Scalar/Reassociate.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/Reassociate.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/Reassociate.cpp?rev=158371&r1=158370&r2=158371&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/Reassociate.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/Reassociate.cpp Tue Jun 12 15:26:43 2012
@@ -485,7 +485,7 @@
 
   // Leaves - Keeps track of the set of putative leaves as well as the number of
   // paths to each leaf seen so far.
-  typedef std::map<Value*, APInt> LeafMap;
+  typedef DenseMap<Value*, APInt> LeafMap;
   LeafMap Leaves; // Leaf -> Total weight so far.
   SmallVector<Value*, 8> LeafOrder; // Ensure deterministic leaf output order.
 





More information about the llvm-commits mailing list