From 55be644df6e8b8ba08ae789ee440c798f21974a0 Mon Sep 17 00:00:00 2001 From: Cameron Zwarich Date: Sun, 23 Jan 2011 06:54:22 +0000 Subject: [PATCH] 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 --- include/llvm/Analysis/DominatorInternals.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/Analysis/DominatorInternals.h b/include/llvm/Analysis/DominatorInternals.h index 125836a6a38..ae552b05abf 100644 --- a/include/llvm/Analysis/DominatorInternals.h +++ b/include/llvm/Analysis/DominatorInternals.h @@ -53,8 +53,8 @@ unsigned DFSPass(DominatorTreeBase& DT, #else bool IsChildOfArtificialExit = (N != 0); - std::vector > Worklist; + SmallVector, 32> Worklist; Worklist.push_back(std::make_pair(V, GraphT::child_begin(V))); while (!Worklist.empty()) { typename GraphT::NodeType* BB = Worklist.back().first;