aboutsummaryrefslogtreecommitdiffstats
path: root/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
commita53fe6070cae7d2feccb542b8ba24b37d3fdd027 (patch)
tree44a7b9bee3e3560e0600ce2588ec4f57ff44aaa3 /lib/Transforms
parenta4633f5d7458f4d04e4bf89be48d3b14e1fae044 (diff)
downloadexternal_llvm-a53fe6070cae7d2feccb542b8ba24b37d3fdd027.zip
external_llvm-a53fe6070cae7d2feccb542b8ba24b37d3fdd027.tar.gz
external_llvm-a53fe6070cae7d2feccb542b8ba24b37d3fdd027.tar.bz2
SmallVectorize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117213 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/InstCombine/InstructionCombining.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Transforms/InstCombine/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp
index 47519fb..de409d1 100644
--- a/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/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 {