Don't try to verify a LoopPass analysis if the loop has been deleted.

llvm-svn: 80919
This commit is contained in:
Dan Gohman 2009-09-03 15:09:24 +00:00
parent d32bdb4c58
commit addca8bad6

View File

@ -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);