mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
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. llvm-svn: 288514
This commit is contained in:
@@ -37,6 +37,7 @@ void polly::registerCanonicalicationPasses(llvm::legacy::PassManagerBase &PM) {
|
||||
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());
|
||||
|
||||
Reference in New Issue
Block a user