Consistently use FunctionAnalysisManager
Besides a general consistently benefit, the extra layer of indirection allows the mechanical part of https://reviews.llvm.org/D23256 that requires touching every transformation and analysis to be factored out cleanly. Thanks to David for the suggestion. llvm-svn: 278077
This commit is contained in:
@@ -360,7 +360,7 @@ bool LCSSAWrapperPass::runOnFunction(Function &F) {
|
||||
return formLCSSAOnAllLoops(LI, *DT, SE);
|
||||
}
|
||||
|
||||
PreservedAnalyses LCSSAPass::run(Function &F, AnalysisManager<Function> &AM) {
|
||||
PreservedAnalyses LCSSAPass::run(Function &F, FunctionAnalysisManager &AM) {
|
||||
auto &LI = AM.getResult<LoopAnalysis>(F);
|
||||
auto &DT = AM.getResult<DominatorTreeAnalysis>(F);
|
||||
auto *SE = AM.getCachedResult<ScalarEvolutionAnalysis>(F);
|
||||
|
||||
Reference in New Issue
Block a user