diff options
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 74b88b9afc6..9e0a8e736a8 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -74,7 +74,7 @@ namespace { : public FunctionPass, public InstVisitor<InstCombiner, Instruction*> { // Worklist of all of the instructions that need to be simplified. - std::vector<Instruction*> Worklist; + SmallVector<Instruction*, 256> Worklist; DenseMap<Instruction*, unsigned> WorklistMap; TargetData *TD; bool MustPreserveLCSSA; @@ -11386,7 +11386,7 @@ static void AddReachableCodeToWorklist(BasicBlock *BB, SmallPtrSet<BasicBlock*, 64> &Visited, InstCombiner &IC, const TargetData *TD) { - std::vector<BasicBlock*> Worklist; + SmallVector<BasicBlock*, 256> Worklist; Worklist.push_back(BB); while (!Worklist.empty()) { |