[llvm-commits] [llvm-gcc-4.2] r46865 - in /llvm-gcc-4.2/trunk/gcc: llvm-backend.cpp llvm-linker-hack.cpp
Devang Patel
dpatel at apple.com
Thu Feb 7 15:24:59 PST 2008
Author: dpatel
Date: Thu Feb 7 17:24:58 2008
New Revision: 46865
URL: http://llvm.org/viewvc/llvm-project?rev=46865&view=rev
Log:
Add loop index split pass in optimization queue.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=46865&r1=46864&r2=46865&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Thu Feb 7 17:24:58 2008
@@ -369,6 +369,7 @@
PM->add(createLoopRotatePass()); // Rotate Loop
PM->add(createLICMPass()); // Hoist loop invariants
PM->add(createLoopUnswitchPass(optimize_size ? true : false));
+ PM->add(createLoopIndexSplitPass()); // Split loop index
PM->add(createInstructionCombiningPass()); // Clean up after LICM/reassoc
PM->add(createIndVarSimplifyPass()); // Canonicalize indvars
if (flag_unroll_loops)
Modified: llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp?rev=46865&r1=46864&r2=46865&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp Thu Feb 7 17:24:58 2008
@@ -64,6 +64,7 @@
llvm::createLoopUnrollPass();
llvm::createReassociatePass();
llvm::createLoopUnswitchPass();
+ llvm::createLoopIndexSplitPass();
llvm::createAggressiveDCEPass();
llvm::createConstantMergePass();
llvm::createIndVarSimplifyPass();
More information about the llvm-commits
mailing list