From 11240d0fdd4e26b9035ccb31fe1f962580cdb19b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 1 Dec 2008 03:58:38 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60326 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Verifier.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 366294138b7..27c640e9175 100644 --- a/lib/VMCore/Verifier.cpp +++ b/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) {