From 5b57e720c875277131ed0d4f3b72a582979d1afe Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 1 Jul 2008 17:44:24 +0000 Subject: Add dom info verifier. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52967 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/LoopPass.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/Analysis/LoopPass.cpp') diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp index b4534cd..57e8f4d 100644 --- a/lib/Analysis/LoopPass.cpp +++ b/lib/Analysis/LoopPass.cpp @@ -234,6 +234,9 @@ bool LPPassManager::runOnFunction(Function &F) { recordAvailableAnalysis(P); removeDeadPasses(P, "", ON_LOOP_MSG); + // Verify dominator information if it is available and preserved. + verifyDomInfo(*LP, F); + if (skipThisLoop) // Do not run other passes on this loop. break; -- cgit v1.1