summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-10-23 17:10:24 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-10-23 17:10:24 +0000
commit76229bc1281ffeb356d2cd9f1021da4b032c883f (patch)
tree18acbc85d397ef092777173315d6d72c12d2eea9 /llvm/lib/Transforms
parente63d087bcb047c6c7c91076c93a459dd10d49a2a (diff)
downloadbcm5719-llvm-76229bc1281ffeb356d2cd9f1021da4b032c883f.tar.gz
bcm5719-llvm-76229bc1281ffeb356d2cd9f1021da4b032c883f.zip
SmallVectorize.
llvm-svn: 117213
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstructionCombining.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
index 47519fbaef9..de409d1ccee 100644
--- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -1032,10 +1032,8 @@ static bool AddReachableCodeToWorklist(BasicBlock *BB,
bool MadeIRChange = false;
SmallVector<BasicBlock*, 256> Worklist;
Worklist.push_back(BB);
-
- std::vector<Instruction*> InstrsForInstCombineWorklist;
- InstrsForInstCombineWorklist.reserve(128);
+ SmallVector<Instruction*, 128> InstrsForInstCombineWorklist;
SmallPtrSet<ConstantExpr*, 64> FoldedConstants;
do {
OpenPOWER on IntegriCloud