mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
BasicBlockPassManager_New::runOnFunction()
Do initialization and finalization. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32346 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
964e45e607
commit
3b14fbe300
@ -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