projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac071ea
)
Use DenseMap as SmallMap workaround rather than std::map, at Chandler's request.
author
Duncan Sands
<baldrick@free.fr>
Tue, 12 Jun 2012 20:26:43 +0000
(20:26 +0000)
committer
Duncan 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/Reassociate.cpp
b/lib/Transforms/Scalar/Reassociate.cpp
index 0eb4c66eb99d2c6c057efde9a2e85a62809e5b20..8cace5eebdbf56eaaf4992d78080ff30b206b146 100644
(file)
--- a/
lib/Transforms/Scalar/Reassociate.cpp
+++ b/
lib/Transforms/Scalar/Reassociate.cpp
@@
-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::m
ap<Value*, APInt> LeafMap;
+ typedef
DenseM
ap<Value*, APInt> LeafMap;
LeafMap Leaves; // Leaf -> Total weight so far.
SmallVector<Value*, 8> LeafOrder; // Ensure deterministic leaf output order.