diff options
author | Matthias Braun <matze@braunis.de> | 2016-01-30 01:24:31 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2016-01-30 01:24:31 +0000 |
commit | b30f2f51410449a6d476fed5c486a4ef8fd5f912 (patch) | |
tree | af58fd7a768c6b601eaf890020aa3e2b4a3130b6 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | daa812d518b1f49feddeb08fcc9c5e563b0bf11e (diff) | |
download | bcm5719-llvm-b30f2f51410449a6d476fed5c486a4ef8fd5f912.tar.gz bcm5719-llvm-b30f2f51410449a6d476fed5c486a4ef8fd5f912.zip |
Avoid overly large SmallPtrSet/SmallSet
These sets perform linear searching in small mode so it is never a good
idea to use SmallSize/N bigger than 32.
llvm-svn: 259283
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index fea77d0f216..6323a4b406f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -112,7 +112,7 @@ namespace { /// /// This is used to allow us to reliably add any operands of a DAG node /// which have not yet been combined to the worklist. - SmallPtrSet<SDNode *, 64> CombinedNodes; + SmallPtrSet<SDNode *, 32> CombinedNodes; // AA - Used for DAG load/store alias analysis. AliasAnalysis &AA; |