diff options
Diffstat (limited to 'lib/Transforms/Scalar/LICM.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LICM.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp index 7f4d783bdb..ac927da07e 100644 --- a/lib/Transforms/Scalar/LICM.cpp +++ b/lib/Transforms/Scalar/LICM.cpp @@ -446,7 +446,7 @@ bool LICM::isLoopInvariantInst(Instruction &I) { void LICM::sink(Instruction &I) { DOUT << "LICM sinking instruction: " << I; - std::vector<BasicBlock*> ExitBlocks; + SmallVector<BasicBlock*, 8> ExitBlocks; CurLoop->getExitBlocks(ExitBlocks); if (isa<LoadInst>(I)) ++NumMovedLoads; @@ -623,7 +623,7 @@ bool LICM::isSafeToExecuteUnconditionally(Instruction &Inst) { return true; // Get the exit blocks for the current loop. - std::vector<BasicBlock*> ExitBlocks; + SmallVector<BasicBlock*, 8> ExitBlocks; CurLoop->getExitBlocks(ExitBlocks); // For each exit block, get the DT node and walk up the DT until the @@ -725,7 +725,7 @@ void LICM::PromoteValuesInLoop() { // std::set<BasicBlock*> ProcessedBlocks; - std::vector<BasicBlock*> ExitBlocks; + SmallVector<BasicBlock*, 8> ExitBlocks; CurLoop->getExitBlocks(ExitBlocks); for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) if (ProcessedBlocks.insert(ExitBlocks[i]).second) { |