summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-12-04 21:40:31 +0000
committerDevang Patel <dpatel@apple.com>2008-12-04 21:40:31 +0000
commit8c84d28250686ab1a5ce8947d74e2ae561f1cb7b (patch)
tree37faa39efb64e7dd50a8db9a399c0d65740c58c5 /llvm
parentc56423b500eba5a8b0b33beca76e0f2585b9d08d (diff)
downloadbcm5719-llvm-8c84d28250686ab1a5ce8947d74e2ae561f1cb7b.tar.gz
bcm5719-llvm-8c84d28250686ab1a5ce8947d74e2ae561f1cb7b.zip
Enable LoopIndexSplit pass.
llvm-svn: 60555
Diffstat (limited to 'llvm')
-rw-r--r--llvm/tools/opt/opt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp
index 8efedb16791..90395535115 100644
--- a/llvm/tools/opt/opt.cpp
+++ b/llvm/tools/opt/opt.cpp
@@ -311,7 +311,7 @@ void AddOptimizationPasses(PassManager &MPM, FunctionPassManager &FPM,
MPM.add(createLoopRotatePass()); // Rotate Loop
MPM.add(createLICMPass()); // Hoist loop invariants
MPM.add(createLoopUnswitchPass());
- // MPM.add(createLoopIndexSplitPass()); // Split loop index
+ MPM.add(createLoopIndexSplitPass()); // Split loop index
MPM.add(createInstructionCombiningPass());
MPM.add(createIndVarSimplifyPass()); // Canonicalize indvars
MPM.add(createLoopDeletionPass()); // Delete dead loops
@@ -383,7 +383,7 @@ void AddStandardCompilePasses(PassManager &PM) {
addPass(PM, createLoopRotatePass());
addPass(PM, createLICMPass()); // Hoist loop invariants
addPass(PM, createLoopUnswitchPass()); // Unswitch loops.
- // addPass(PM, createLoopIndexSplitPass()); // Index split loops.
+ addPass(PM, createLoopIndexSplitPass()); // Index split loops.
// FIXME : Removing instcombine causes nestedloop regression.
addPass(PM, createInstructionCombiningPass());
addPass(PM, createIndVarSimplifyPass()); // Canonicalize indvars
OpenPOWER on IntegriCloud