[polly] r288514 - Rerun mem2reg after the inliner
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 2 09:43:57 PST 2016
Author: jdoerfert
Date: Fri Dec 2 11:43:57 2016
New Revision: 288514
URL: http://llvm.org/viewvc/llvm-project?rev=288514&view=rev
Log:
Rerun mem2reg after the inliner
It did happen that after the inliner finished we end up with promotable
allocas in a function. We now run mem2reg to make sure everything is
promoted if possible.
Modified:
polly/trunk/lib/Transform/Canonicalization.cpp
Modified: polly/trunk/lib/Transform/Canonicalization.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/Canonicalization.cpp?rev=288514&r1=288513&r2=288514&view=diff
==============================================================================
--- polly/trunk/lib/Transform/Canonicalization.cpp (original)
+++ polly/trunk/lib/Transform/Canonicalization.cpp Fri Dec 2 11:43:57 2016
@@ -37,6 +37,7 @@ void polly::registerCanonicalicationPass
PM.add(llvm::createLoopRotatePass());
if (PollyInliner) {
PM.add(llvm::createFunctionInliningPass(200));
+ PM.add(llvm::createPromoteMemoryToRegisterPass());
PM.add(llvm::createCFGSimplificationPass());
PM.add(llvm::createInstructionCombiningPass());
PM.add(createBarrierNoopPass());
More information about the llvm-commits
mailing list