diff options
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/LoopInfo.cpp | 6 | ||||
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index 8f9b43fa86..877bd4ae67 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/lib/Analysis/LoopInfo.cpp @@ -350,7 +350,7 @@ void LoopInfo::removeBlock(BasicBlock *BB) { /// outside of the loop. These are the blocks _inside of the current loop_ /// which branch out. The returned list is always unique. /// -void Loop::getExitingBlocks(std::vector<BasicBlock*> &ExitingBlocks) const { +void Loop::getExitingBlocks(SmallVector<BasicBlock*, 8> &ExitingBlocks) const { // Sort the blocks vector so that we can use binary search to do quick // lookups. std::vector<BasicBlock*> LoopBBs(block_begin(), block_end()); @@ -369,7 +369,7 @@ void Loop::getExitingBlocks(std::vector<BasicBlock*> &ExitingBlocks) const { /// getExitBlocks - Return all of the successor blocks of this loop. These /// are the blocks _outside of the current loop_ which are branched to. /// -void Loop::getExitBlocks(std::vector<BasicBlock*> &ExitBlocks) const { +void Loop::getExitBlocks(SmallVector<BasicBlock*, 8> &ExitBlocks) const { // Sort the blocks vector so that we can use binary search to do quick // lookups. std::vector<BasicBlock*> LoopBBs(block_begin(), block_end()); @@ -387,7 +387,7 @@ void Loop::getExitBlocks(std::vector<BasicBlock*> &ExitBlocks) const { /// are the blocks _outside of the current loop_ which are branched to. This /// assumes that loop is in canonical form. // -void Loop::getUniqueExitBlocks(std::vector<BasicBlock*> &ExitBlocks) const { +void Loop::getUniqueExitBlocks(SmallVector<BasicBlock*, 8> &ExitBlocks) const { // Sort the blocks vector so that we can use binary search to do quick // lookups. std::vector<BasicBlock*> LoopBBs(block_begin(), block_end()); diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 31facd182a..5bae18cc4c 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -1569,7 +1569,7 @@ SCEVHandle ScalarEvolutionsImpl::getIterationCount(const Loop *L) { /// will iterate. SCEVHandle ScalarEvolutionsImpl::ComputeIterationCount(const Loop *L) { // If the loop has a non-one exit block count, we can't analyze it. - std::vector<BasicBlock*> ExitBlocks; + SmallVector<BasicBlock*, 8> ExitBlocks; L->getExitBlocks(ExitBlocks); if (ExitBlocks.size() != 1) return UnknownValue; @@ -2620,7 +2620,7 @@ static void PrintLoopInfo(std::ostream &OS, const ScalarEvolution *SE, cerr << "Loop " << L->getHeader()->getName() << ": "; - std::vector<BasicBlock*> ExitBlocks; + SmallVector<BasicBlock*, 8> ExitBlocks; L->getExitBlocks(ExitBlocks); if (ExitBlocks.size() != 1) cerr << "<multiple exits> "; |