[llvm-branch-commits] [llvm-branch] r96014 - in /llvm/branches/Apple/Hermes: include/llvm/CodeGen/Passes.h lib/CodeGen/CMakeLists.txt lib/CodeGen/LLVMTargetMachine.cpp lib/CodeGen/OptimizePHIs.cpp test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll

Bob Wilson bob.wilson at apple.com
Fri Feb 12 13:26:57 PST 2010


Author: bwilson
Date: Fri Feb 12 15:26:57 2010
New Revision: 96014

URL: http://llvm.org/viewvc/llvm-project?rev=96014&view=rev
Log:
--- Merging r95951 into '.':
A    test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll
U    include/llvm/CodeGen/Passes.h
U    lib/CodeGen/LLVMTargetMachine.cpp
A    lib/CodeGen/OptimizePHIs.cpp
U    lib/CodeGen/CMakeLists.txt

Added:
    llvm/branches/Apple/Hermes/lib/CodeGen/OptimizePHIs.cpp
      - copied unchanged from r95951, llvm/trunk/lib/CodeGen/OptimizePHIs.cpp
    llvm/branches/Apple/Hermes/test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll
      - copied unchanged from r95951, llvm/trunk/test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll
Modified:
    llvm/branches/Apple/Hermes/include/llvm/CodeGen/Passes.h
    llvm/branches/Apple/Hermes/lib/CodeGen/CMakeLists.txt
    llvm/branches/Apple/Hermes/lib/CodeGen/LLVMTargetMachine.cpp

Modified: llvm/branches/Apple/Hermes/include/llvm/CodeGen/Passes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Hermes/include/llvm/CodeGen/Passes.h?rev=96014&r1=96013&r2=96014&view=diff

==============================================================================
--- llvm/branches/Apple/Hermes/include/llvm/CodeGen/Passes.h (original)
+++ llvm/branches/Apple/Hermes/include/llvm/CodeGen/Passes.h Fri Feb 12 15:26:57 2010
@@ -174,6 +174,10 @@
   /// optimization by increasing uses of extended values.
   FunctionPass *createOptimizeExtsPass();
 
+  /// createOptimizePHIsPass - This pass optimizes machine instruction PHIs
+  /// to take advantage of opportunities created during DAG legalization.
+  FunctionPass *createOptimizePHIsPass();
+
   /// createStackSlotColoringPass - This pass performs stack slot coloring.
   FunctionPass *createStackSlotColoringPass(bool);
 

Modified: llvm/branches/Apple/Hermes/lib/CodeGen/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Hermes/lib/CodeGen/CMakeLists.txt?rev=96014&r1=96013&r2=96014&view=diff

==============================================================================
--- llvm/branches/Apple/Hermes/lib/CodeGen/CMakeLists.txt (original)
+++ llvm/branches/Apple/Hermes/lib/CodeGen/CMakeLists.txt Fri Feb 12 15:26:57 2010
@@ -39,6 +39,7 @@
   ObjectCodeEmitter.cpp
   OcamlGC.cpp
   OptimizeExts.cpp
+  OptimizePHIs.cpp
   PHIElimination.cpp
   Passes.cpp
   PostRASchedulerList.cpp

Modified: llvm/branches/Apple/Hermes/lib/CodeGen/LLVMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Hermes/lib/CodeGen/LLVMTargetMachine.cpp?rev=96014&r1=96013&r2=96014&view=diff

==============================================================================
--- llvm/branches/Apple/Hermes/lib/CodeGen/LLVMTargetMachine.cpp (original)
+++ llvm/branches/Apple/Hermes/lib/CodeGen/LLVMTargetMachine.cpp Fri Feb 12 15:26:57 2010
@@ -299,6 +299,7 @@
 
   if (OptLevel != CodeGenOpt::None) {
     PM.add(createOptimizeExtsPass());
+    PM.add(createOptimizePHIsPass());
     if (!DisableMachineLICM)
       PM.add(createMachineLICMPass());
     if (!DisableMachineSink)





More information about the llvm-branch-commits mailing list