aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/LoopPass.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-03-07 00:26:10 +0000
committerDevang Patel <dpatel@apple.com>2007-03-07 00:26:10 +0000
commit1bc89361c2ba023f305bf00edd4b5d95b021cac6 (patch)
tree662e5de1cb10c7d01f32174153d71771314508a4 /lib/Analysis/LoopPass.cpp
parentba0d804aa7301ffc347d45481041432a34cffdae (diff)
Now LoopUnswitch is a LoopPass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopPass.cpp')
-rw-r--r--lib/Analysis/LoopPass.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp
index d44e41a637..ac2e32c51c 100644
--- a/lib/Analysis/LoopPass.cpp
+++ b/lib/Analysis/LoopPass.cpp
@@ -132,7 +132,7 @@ void LPPassManager::insertLoop(Loop *L, Loop *ParentLoop) {
// queue. This allows LoopPass to change loop nest for the loop. This
// utility may send LPPassManager into infinite loops so use caution.
void LPPassManager::redoLoop(Loop *L) {
- assert (CurrentLoop != L && "Can redo only CurrentLoop");
+ assert (CurrentLoop == L && "Can redo only CurrentLoop");
redoThisLoop = true;
}
@@ -279,6 +279,7 @@ void LoopPass::assignPassManager(PMStack &PMS,
// [1] Create new Call Graph Pass Manager
LPPM = new LPPassManager(PMD->getDepth() + 1);
+ LPPM->populateInheritedAnalysis(PMS);
// [2] Set up new manager's top level manager
PMTopLevelManager *TPM = PMD->getTopLevelManager();