diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-03 15:09:24 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-03 15:09:24 +0000 |
commit | dd12de686cb0a3bcff879ae895fe461caa6f7842 (patch) | |
tree | 659ea83ce84180819a83d77b6abdfbc468044998 /lib/Analysis/LoopPass.cpp | |
parent | e7125f4babb536df3a2573b6166954da7753c6b8 (diff) |
Don't try to verify a LoopPass analysis if the loop has been deleted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopPass.cpp')
-rw-r--r-- | lib/Analysis/LoopPass.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp index 0007aded2b..1af3684dbe 100644 --- a/lib/Analysis/LoopPass.cpp +++ b/lib/Analysis/LoopPass.cpp @@ -239,7 +239,9 @@ bool LPPassManager::runOnFunction(Function &F) { dumpPassInfo(P, MODIFICATION_MSG, ON_LOOP_MSG, ""); dumpPreservedSet(P); - verifyPreservedAnalysis(LP); + if (!skipThisLoop) + verifyPreservedAnalysis(LP); + removeNotPreservedAnalysis(P); recordAvailableAnalysis(P); removeDeadPasses(P, "", ON_LOOP_MSG); |