From 8c84d28250686ab1a5ce8947d74e2ae561f1cb7b Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Thu, 4 Dec 2008 21:40:31 +0000 Subject: Enable LoopIndexSplit pass. llvm-svn: 60555 --- llvm/tools/opt/opt.cpp | 4 ++-- 1 file 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 -- cgit v1.2.3