[llvm-commits] CVS: llvm/lib/Analysis/LoopPass.cpp
Devang Patel
dpatel at apple.com
Tue Mar 6 16:26:37 PST 2007
Changes in directory llvm/lib/Analysis:
LoopPass.cpp updated: 1.16 -> 1.17
---
Log message:
Now LoopUnswitch is a LoopPass.
---
Diffs of the changes: (+2 -1)
LoopPass.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/Analysis/LoopPass.cpp
diff -u llvm/lib/Analysis/LoopPass.cpp:1.16 llvm/lib/Analysis/LoopPass.cpp:1.17
--- llvm/lib/Analysis/LoopPass.cpp:1.16 Tue Mar 6 13:50:49 2007
+++ llvm/lib/Analysis/LoopPass.cpp Tue Mar 6 18:26:10 2007
@@ -132,7 +132,7 @@
// 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 @@
// [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();
More information about the llvm-commits
mailing list