mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-22 10:33:23 +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
|
bool
|
||||||
BasicBlockPassManager_New::runOnFunction(Function &F) {
|
BasicBlockPassManager_New::runOnFunction(Function &F) {
|
||||||
|
|
||||||
bool Changed = false;
|
bool Changed = doInitialization(F);
|
||||||
initializeAnalysisInfo();
|
initializeAnalysisInfo();
|
||||||
|
|
||||||
for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I)
|
for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I)
|
||||||
@ -663,7 +663,7 @@ BasicBlockPassManager_New::runOnFunction(Function &F) {
|
|||||||
recordAvailableAnalysis(P);
|
recordAvailableAnalysis(P);
|
||||||
removeDeadPasses(P);
|
removeDeadPasses(P);
|
||||||
}
|
}
|
||||||
return Changed;
|
return Changed | doFinalization(F);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return true IFF AnalysisID AID is currently available.
|
/// Return true IFF AnalysisID AID is currently available.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user