diff options
author | Devang Patel <dpatel@apple.com> | 2007-08-21 16:54:51 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-08-21 16:54:51 +0000 |
commit | e79bad66e0b265cdac2dc90e5e6727a5fa2cbcae (patch) | |
tree | 39e7f3b39d3fe24deaa12cdac4df13df8a9a92e3 /lib/Analysis/LoopInfo.cpp | |
parent | 7c6c55db4df35c9e0bbff89ceec52b0504862d7d (diff) | |
download | external_llvm-e79bad66e0b265cdac2dc90e5e6727a5fa2cbcae.zip external_llvm-e79bad66e0b265cdac2dc90e5e6727a5fa2cbcae.tar.gz external_llvm-e79bad66e0b265cdac2dc90e5e6727a5fa2cbcae.tar.bz2 |
Use SmallVector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopInfo.cpp')
-rw-r--r-- | lib/Analysis/LoopInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index e479edc..09dca27 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/lib/Analysis/LoopInfo.cpp @@ -353,7 +353,7 @@ void LoopInfo::removeBlock(BasicBlock *BB) { void Loop::getExitingBlocks(SmallVectorImpl<BasicBlock*> &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()); + SmallVector<BasicBlock*, 128> LoopBBs(block_begin(), block_end()); std::sort(LoopBBs.begin(), LoopBBs.end()); for (std::vector<BasicBlock*>::const_iterator BI = Blocks.begin(), @@ -372,7 +372,7 @@ void Loop::getExitingBlocks(SmallVectorImpl<BasicBlock*> &ExitingBlocks) const { void Loop::getExitBlocks(SmallVectorImpl<BasicBlock*> &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()); + SmallVector<BasicBlock*, 128> LoopBBs(block_begin(), block_end()); std::sort(LoopBBs.begin(), LoopBBs.end()); for (std::vector<BasicBlock*>::const_iterator BI = Blocks.begin(), @@ -390,7 +390,7 @@ void Loop::getExitBlocks(SmallVectorImpl<BasicBlock*> &ExitBlocks) const { void Loop::getUniqueExitBlocks(SmallVectorImpl<BasicBlock*> &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()); + SmallVector<BasicBlock*, 128> LoopBBs(block_begin(), block_end()); std::sort(LoopBBs.begin(), LoopBBs.end()); std::vector<BasicBlock*> switchExitBlocks; |