[llvm-commits] [126319] Enable loop rotation.

dpatel at apple.com dpatel at apple.com
Thu Apr 19 15:05:17 PDT 2007


Revision: 126319
Author:   dpatel
Date:     2007-04-19 15:05:17 -0700 (Thu, 19 Apr 2007)

Log Message:
-----------
Enable loop rotation.

Modified Paths:
--------------
    apple-local/branches/llvm/gcc/llvm-backend.cpp
    apple-local/branches/llvm/gcc/llvm-linker-hack.cpp

Modified: apple-local/branches/llvm/gcc/llvm-backend.cpp
===================================================================
--- apple-local/branches/llvm/gcc/llvm-backend.cpp	2007-04-19 21:20:06 UTC (rev 126318)
+++ apple-local/branches/llvm/gcc/llvm-backend.cpp	2007-04-19 22:05:17 UTC (rev 126319)
@@ -315,6 +315,7 @@
     PM->add(createTailCallEliminationPass());   // Eliminate tail calls
     PM->add(createCFGSimplificationPass());     // Merge & remove BBs
     PM->add(createReassociatePass());           // Reassociate expressions
+    PM->add(createLoopRotatePass());            // Rotate Loop
     PM->add(createLICMPass());                  // Hoist loop invariants
     PM->add(createLoopUnswitchPass());          // Unswitch loops.
     PM->add(createInstructionCombiningPass());  // Clean up after LICM/reassoc

Modified: apple-local/branches/llvm/gcc/llvm-linker-hack.cpp
===================================================================
--- apple-local/branches/llvm/gcc/llvm-linker-hack.cpp	2007-04-19 21:20:06 UTC (rev 126318)
+++ apple-local/branches/llvm/gcc/llvm-linker-hack.cpp	2007-04-19 22:05:17 UTC (rev 126319)
@@ -53,6 +53,7 @@
   llvm::createLinearScanRegisterAllocator();
 
   llvm::createGCSEPass();
+  llvm::createLoopRotatePass();
   llvm::createLICMPass();
   llvm::createSCCPPass();
   llvm::createPruneEHPass();





More information about the llvm-commits mailing list