[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:
Michael Kruse 2019-06-17 16:01:40 +00:00
parent 12cb792d7f
commit 77bc3b6542
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ public:
ModuleAnalysisManager MAM;
PB.registerModuleAnalyses(MAM);
MAM.registerPass([&] { return FunctionAnalysisManagerModuleProxy(FAM); });
ModulePassManager MPM;
MPM.addPass(AlwaysInlinerPass());
Module *M = F->getParent();