summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-15 17:48:15 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-15 17:48:15 +0000
commit2b69189c9c0702a7d4b3c4fdd752917d232446a4 (patch)
tree9261ed8443d1a08f4de0171fe0009255e6156ae1
parent0d640014ffb0a8e7b77b29b59314b33d276d616c (diff)
downloadbcm5719-llvm-2b69189c9c0702a7d4b3c4fdd752917d232446a4.tar.gz
bcm5719-llvm-2b69189c9c0702a7d4b3c4fdd752917d232446a4.zip
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. llvm-svn: 206306
-rw-r--r--llvm/lib/Transforms/IPO/PassManagerBuilder.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp b/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
index 4a28b34468b..76f7c1098b0 100644
--- a/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
+++ b/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
@@ -334,7 +334,9 @@ void PassManagerBuilder::populateLTOPassManager(PassManagerBase &PM,
// 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.
OpenPOWER on IntegriCloud