[llvm] r206306 - LTO: Add more loop simplification passes to LTO
Duncan P. N. Exon Smith
dexonsmith at apple.com
Tue Apr 15 10:48:15 PDT 2014
Author: dexonsmith
Date: Tue Apr 15 12:48:15 2014
New Revision: 206306
URL: http://llvm.org/viewvc/llvm-project?rev=206306&view=rev
Log:
LTO: Add more loop simplification passes to LTO
Similar to r202051, add missing loop simplification passes to the LTO
optimization pipeline.
Patch by Rafael Espindola.
Modified:
llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
Modified: llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp?rev=206306&r1=206305&r2=206306&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp Tue Apr 15 12:48:15 2014
@@ -334,7 +334,9 @@ void PassManagerBuilder::populateLTOPass
// Nuke dead stores.
PM.add(createDeadStoreEliminationPass());
- // More loops are countable try to vectorize them.
+ // More loops are countable; try to optimize them.
+ PM.add(createIndVarSimplifyPass());
+ PM.add(createLoopDeletionPass());
PM.add(createLoopVectorizePass(true, true));
// Cleanup and simplify the code after the scalar optimizations.
More information about the llvm-commits
mailing list