forked from OSchip/llvm-project
[ScopInliner] Register FunctionAnalysisManagerModuleProxy.
FunctionAnalysisManagerModuleProxy started to be used by the AlwaysInlinerPass in r363287 and therefore had to be registered in the New PassManager. Should fix the regression tests Polly :: ScopInliner/invariant-load-func.ll Polly :: ScopInliner/simple-inline-loop.ll llvm-svn: 363572
This commit is contained in:
parent
12cb792d7f
commit
77bc3b6542
|
@ -82,6 +82,7 @@ public:
|
|||
|
||||
ModuleAnalysisManager MAM;
|
||||
PB.registerModuleAnalyses(MAM);
|
||||
MAM.registerPass([&] { return FunctionAnalysisManagerModuleProxy(FAM); });
|
||||
ModulePassManager MPM;
|
||||
MPM.addPass(AlwaysInlinerPass());
|
||||
Module *M = F->getParent();
|
||||
|
|
Loading…
Reference in New Issue