From 77bc3b65424afc42031a0859c91154acdc54feaa Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Mon, 17 Jun 2019 16:01:40 +0000 Subject: [PATCH] [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 --- polly/lib/Transform/ScopInliner.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/polly/lib/Transform/ScopInliner.cpp b/polly/lib/Transform/ScopInliner.cpp index 7aaa367774e5..8342a0588f1e 100644 --- a/polly/lib/Transform/ScopInliner.cpp +++ b/polly/lib/Transform/ScopInliner.cpp @@ -82,6 +82,7 @@ public: ModuleAnalysisManager MAM; PB.registerModuleAnalyses(MAM); + MAM.registerPass([&] { return FunctionAnalysisManagerModuleProxy(FAM); }); ModulePassManager MPM; MPM.addPass(AlwaysInlinerPass()); Module *M = F->getParent();