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 | 11240d0fdd4e26b9035ccb31fe1f962580cdb19b (patch) | |
tree | a140ab53f2e466c7a594c0266a615ccc50c7ea85 | |
parent | 38b3dcc4651606c683d864f11cd27852810f3936 (diff) | |
download | external_llvm-11240d0fdd4e26b9035ccb31fe1f962580cdb19b.zip external_llvm-11240d0fdd4e26b9035ccb31fe1f962580cdb19b.tar.gz external_llvm-11240d0fdd4e26b9035ccb31fe1f962580cdb19b.tar.bz2 |
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
-rw-r--r-- | lib/VMCore/Verifier.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 3662941..27c640e 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) { |