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 | 7b3d6b3a148dd861533b8a7b9716223eea357de2 (patch) | |
tree | a140ab53f2e466c7a594c0266a615ccc50c7ea85 | |
parent | 3007801f2f80a600a2fece65cf153eb213eb08c6 (diff) | |
download | external_llvm-7b3d6b3a148dd861533b8a7b9716223eea357de2.zip external_llvm-7b3d6b3a148dd861533b8a7b9716223eea357de2.tar.gz external_llvm-7b3d6b3a148dd861533b8a7b9716223eea357de2.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) { |