[llvm-commits] [llvm] r60326 - /llvm/trunk/lib/VMCore/Verifier.cpp

Chris Lattner sabre at nondot.org
Sun Nov 30 19:58:39 PST 2008


Author: lattner
Date: Sun Nov 30 21:58:38 2008
New Revision: 60326

URL: http://llvm.org/viewvc/llvm-project?rev=60326&view=rev
Log:
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.

Modified:
    llvm/trunk/lib/VMCore/Verifier.cpp

Modified: llvm/trunk/lib/VMCore/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Verifier.cpp?rev=60326&r1=60325&r2=60326&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/Verifier.cpp (original)
+++ llvm/trunk/lib/VMCore/Verifier.cpp Sun Nov 30 21:58:38 2008
@@ -72,6 +72,10 @@
 
     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) {





More information about the llvm-commits mailing list