diff options
author | Chris Lattner <sabre@nondot.org> | 2008-12-01 03:58:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-12-01 03:58:38 +0000 |
commit | 856684d360f088cb4c53b8f3b385d953d8ad2581 (patch) | |
tree | 509a85d2079bbe03b5bcfbaf7dbd10d3dbe84c46 /llvm/lib | |
parent | 084b3a47d3e09b20fc20a307a58e17e3ee802a11 (diff) | |
download | bcm5719-llvm-856684d360f088cb4c53b8f3b385d953d8ad2581.tar.gz bcm5719-llvm-856684d360f088cb4c53b8f3b385d953d8ad2581.zip |
The PreVerifier pass preserves everything. In practice, this
prevents the passmgr from adding yet-another domtree invocation
for Verifier if there is already one live.
llvm-svn: 60326
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/VMCore/Verifier.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp index 366294138b7..27c640e9175 100644 --- a/llvm/lib/VMCore/Verifier.cpp +++ b/llvm/lib/VMCore/Verifier.cpp @@ -72,6 +72,10 @@ namespace { // Anonymous namespace for class PreVerifier() : FunctionPass(&ID) { } + virtual void getAnalysisUsage(AnalysisUsage &AU) const { + AU.setPreservesAll(); + } + // Check that the prerequisites for successful DominatorTree construction // are satisfied. bool runOnFunction(Function &F) { |