1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

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 13942f82c4
commit ceeb559995

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