mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
BasicBlockPassManager_New::runOnFunction()
Do initialization and finalization. llvm-svn: 32346
This commit is contained in:
parent
0fc48cda15
commit
94eedf9be1
@ -649,7 +649,7 @@ BasicBlockPassManager_New::addPass(Pass *P) {
|
||||
bool
|
||||
BasicBlockPassManager_New::runOnFunction(Function &F) {
|
||||
|
||||
bool Changed = false;
|
||||
bool Changed = doInitialization(F);
|
||||
initializeAnalysisInfo();
|
||||
|
||||
for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I)
|
||||
@ -663,7 +663,7 @@ BasicBlockPassManager_New::runOnFunction(Function &F) {
|
||||
recordAvailableAnalysis(P);
|
||||
removeDeadPasses(P);
|
||||
}
|
||||
return Changed;
|
||||
return Changed | doFinalization(F);
|
||||
}
|
||||
|
||||
/// Return true IFF AnalysisID AID is currently available.
|
||||
|
Loading…
Reference in New Issue
Block a user