[polly] r363572 - [ScopInliner] Register FunctionAnalysisManagerModuleProxy.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 17 09:01:40 PDT 2019


Author: meinersbur
Date: Mon Jun 17 09:01:40 2019
New Revision: 363572

URL: http://llvm.org/viewvc/llvm-project?rev=363572&view=rev
Log:
[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

Modified:
    polly/trunk/lib/Transform/ScopInliner.cpp

Modified: polly/trunk/lib/Transform/ScopInliner.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/ScopInliner.cpp?rev=363572&r1=363571&r2=363572&view=diff
==============================================================================
--- polly/trunk/lib/Transform/ScopInliner.cpp (original)
+++ polly/trunk/lib/Transform/ScopInliner.cpp Mon Jun 17 09:01:40 2019
@@ -82,6 +82,7 @@ public:
 
       ModuleAnalysisManager MAM;
       PB.registerModuleAnalyses(MAM);
+      MAM.registerPass([&] { return FunctionAnalysisManagerModuleProxy(FAM); });
       ModulePassManager MPM;
       MPM.addPass(AlwaysInlinerPass());
       Module *M = F->getParent();




More information about the llvm-commits mailing list