Use DenseMap as SmallMap workaround rather than std::map, at Chandler's request.
authorDuncan Sands <baldrick@free.fr>
Tue, 12 Jun 2012 20:26:43 +0000 (20:26 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 12 Jun 2012 20:26:43 +0000 (20:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158371 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/Reassociate.cpp

index 0eb4c66eb99d2c6c057efde9a2e85a62809e5b20..8cace5eebdbf56eaaf4992d78080ff30b206b146 100644 (file)
@@ -485,7 +485,7 @@ static bool LinearizeExprTree(BinaryOperator *I,
 
   // 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.