summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LoopInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-09-06 02:26:10 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-09-06 02:26:10 +0000
commit904199547b790d831683605a3e0f0fb5a233ff2a (patch)
treece675911551d225cc7e7eb5d30d81d0053fe5557 /llvm/lib/Analysis/LoopInfo.cpp
parent94bcae46d5c0481970c126a78ec62487e3dec735 (diff)
downloadbcm5719-llvm-904199547b790d831683605a3e0f0fb5a233ff2a.tar.gz
bcm5719-llvm-904199547b790d831683605a3e0f0fb5a233ff2a.zip
Revert r80926. It causes loop unswitch assertion and slow down some JIT tests significantly.
llvm-svn: 81101
Diffstat (limited to 'llvm/lib/Analysis/LoopInfo.cpp')
-rw-r--r--llvm/lib/Analysis/LoopInfo.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Analysis/LoopInfo.cpp b/llvm/lib/Analysis/LoopInfo.cpp
index 10806eb36a4..b2405792d63 100644
--- a/llvm/lib/Analysis/LoopInfo.cpp
+++ b/llvm/lib/Analysis/LoopInfo.cpp
@@ -300,9 +300,6 @@ bool Loop::isLoopSimplifyForm() const {
///
void
Loop::getUniqueExitBlocks(SmallVectorImpl<BasicBlock *> &ExitBlocks) const {
- assert(isLoopSimplifyForm() &&
- "getUniqueExitBlocks assumes the loop is in canonical form!");
-
// Sort the blocks vector so that we can use binary search to do quick
// lookups.
SmallVector<BasicBlock *, 128> LoopBBs(block_begin(), block_end());
@@ -374,13 +371,6 @@ bool LoopInfo::runOnFunction(Function &) {
return false;
}
-void LoopInfo::verifyAnalysis() const {
- for (iterator I = begin(), E = end(); I != E; ++I) {
- assert(!(*I)->getParentLoop() && "Top-level loop has a parent!");
- (*I)->verifyLoop();
- }
-}
-
void LoopInfo::getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
AU.addRequired<DominatorTree>();
OpenPOWER on IntegriCloud