diff options
author | Cameron Zwarich <zwarich@apple.com> | 2011-01-23 06:54:22 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2011-01-23 06:54:22 +0000 |
commit | 55be644df6e8b8ba08ae789ee440c798f21974a0 (patch) | |
tree | 35c19345b92dde0d9af98ee3ee7b2abad5e36716 | |
parent | 85a7c690852d6151acff0d8821762d75bc774ab4 (diff) |
Convert a std::vector to a SmallVector for another 5.4% speedup on domtree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124065 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/DominatorInternals.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/DominatorInternals.h b/include/llvm/Analysis/DominatorInternals.h index 125836a6a3..ae552b05ab 100644 --- a/include/llvm/Analysis/DominatorInternals.h +++ b/include/llvm/Analysis/DominatorInternals.h @@ -53,8 +53,8 @@ unsigned DFSPass(DominatorTreeBase<typename GraphT::NodeType>& DT, #else bool IsChildOfArtificialExit = (N != 0); - std::vector<std::pair<typename GraphT::NodeType*, - typename GraphT::ChildIteratorType> > Worklist; + SmallVector<std::pair<typename GraphT::NodeType*, + typename GraphT::ChildIteratorType>, 32> Worklist; Worklist.push_back(std::make_pair(V, GraphT::child_begin(V))); while (!Worklist.empty()) { typename GraphT::NodeType* BB = Worklist.back().first; |