forked from OSchip/llvm-project
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:
parent
084b3a47d3
commit
856684d360
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue