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
This commit is contained in:
Chris Lattner 2008-12-01 03:58:38 +00:00
parent 084b3a47d3
commit 856684d360
1 changed files with 4 additions and 0 deletions

View File

@ -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) {