From: Devang Patel Date: Tue, 21 Aug 2007 16:54:51 +0000 (+0000) Subject: Use SmallVector. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e79bad66e0b265cdac2dc90e5e6727a5fa2cbcae;p=oota-llvm.git Use SmallVector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41230 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index e479edc6473..09dca27958b 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/lib/Analysis/LoopInfo.cpp @@ -353,7 +353,7 @@ void LoopInfo::removeBlock(BasicBlock *BB) { void Loop::getExitingBlocks(SmallVectorImpl &ExitingBlocks) const { // Sort the blocks vector so that we can use binary search to do quick // lookups. - std::vector LoopBBs(block_begin(), block_end()); + SmallVector LoopBBs(block_begin(), block_end()); std::sort(LoopBBs.begin(), LoopBBs.end()); for (std::vector::const_iterator BI = Blocks.begin(), @@ -372,7 +372,7 @@ void Loop::getExitingBlocks(SmallVectorImpl &ExitingBlocks) const { void Loop::getExitBlocks(SmallVectorImpl &ExitBlocks) const { // Sort the blocks vector so that we can use binary search to do quick // lookups. - std::vector LoopBBs(block_begin(), block_end()); + SmallVector LoopBBs(block_begin(), block_end()); std::sort(LoopBBs.begin(), LoopBBs.end()); for (std::vector::const_iterator BI = Blocks.begin(), @@ -390,7 +390,7 @@ void Loop::getExitBlocks(SmallVectorImpl &ExitBlocks) const { void Loop::getUniqueExitBlocks(SmallVectorImpl &ExitBlocks) const { // Sort the blocks vector so that we can use binary search to do quick // lookups. - std::vector LoopBBs(block_begin(), block_end()); + SmallVector LoopBBs(block_begin(), block_end()); std::sort(LoopBBs.begin(), LoopBBs.end()); std::vector switchExitBlocks;