Move the dominator verification code out of special code embedded within
authorDan Gohman <gohman@apple.com>
Mon, 28 Sep 2009 00:27:48 +0000 (00:27 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 28 Sep 2009 00:27:48 +0000 (00:27 +0000)
commit9450b0e1a6154192ca597ad27f8eb6e6e807f7a4
tree30b9306c15136bcce40db9d6de99e2ce201f581a
parentf3f0c89f5f9c2ad99169084cbfedaf3ed0ee6a50
Move the dominator verification code out of special code embedded within
the PassManager code into a regular verifyAnalysis method.

Also, reorganize loop verification. Make the LoopPass infrastructure
call verifyLoop as needed instead of having LoopInfo::verifyAnalysis
check every loop in the function after each looop pass. Add a new
command-line argument, -verify-loop-info, to enable the expensive
full checking.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82952 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/Dominators.h
include/llvm/PassManagers.h
lib/Analysis/LoopInfo.cpp
lib/Analysis/LoopPass.cpp
lib/VMCore/Dominators.cpp
lib/VMCore/PassManager.cpp
test/DebugInfo/2009-01-15-RecordVariableCrash.ll
test/Transforms/LCSSA/2006-10-31-UnreachableBlock-2.ll
test/Transforms/LoopSimplify/2004-04-13-LoopSimplifyUpdateDomFrontier.ll
test/Transforms/LoopUnswitch/preserve-analyses.ll