[llvm-commits] [llvm] r63855 - in /llvm/trunk: lib/CodeGen/LLVMTargetMachine.cpp test/CodeGen/ARM/remat.ll test/CodeGen/X86/pre-split2.ll

Evan Cheng evan.cheng at apple.com
Thu Feb 5 00:46:34 PST 2009


Author: evancheng
Date: Thu Feb  5 02:46:33 2009
New Revision: 63855

URL: http://llvm.org/viewvc/llvm-project?rev=63855&view=rev
Log:
Turn on machine LICM in non-fast mode.

Modified:
    llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
    llvm/trunk/test/CodeGen/ARM/remat.ll
    llvm/trunk/test/CodeGen/X86/pre-split2.ll

Modified: llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp?rev=63855&r1=63854&r2=63855&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp (original)
+++ llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp Thu Feb  5 02:46:33 2009
@@ -42,10 +42,6 @@
 static cl::opt<bool>
 EnableSinking("enable-sinking", cl::init(false), cl::Hidden,
               cl::desc("Perform sinking on machine code"));
-static cl::opt<bool>
-EnableLICM("machine-licm",
-           cl::init(false), cl::Hidden,
-           cl::desc("Perform loop-invariant code motion on machine code"));
 
 // When this works it will be on by default.
 static cl::opt<bool>
@@ -187,7 +183,7 @@
   if (PrintMachineCode)
     PM.add(createMachineFunctionPrinterPass(cerr));
 
-  if (EnableLICM)
+  if (!Fast)
     PM.add(createMachineLICMPass());
 
   if (EnableSinking)

Modified: llvm/trunk/test/CodeGen/ARM/remat.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/remat.ll?rev=63855&r1=63854&r2=63855&view=diff

==============================================================================
--- llvm/trunk/test/CodeGen/ARM/remat.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/remat.ll Thu Feb  5 02:46:33 2009
@@ -1,5 +1,5 @@
 ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin 
-; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -stats -info-output-file - | grep "Number of re-materialization" | grep 3
+; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -stats -info-output-file - | grep "Number of re-materialization" | grep 2
 
 	%struct.CONTENTBOX = type { i32, i32, i32, i32, i32 }
 	%struct.LOCBOX = type { i32, i32, i32, i32 }

Modified: llvm/trunk/test/CodeGen/X86/pre-split2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/pre-split2.ll?rev=63855&r1=63854&r2=63855&view=diff

==============================================================================
--- llvm/trunk/test/CodeGen/X86/pre-split2.ll (original)
+++ llvm/trunk/test/CodeGen/X86/pre-split2.ll Thu Feb  5 02:46:33 2009
@@ -1,7 +1,7 @@
 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -pre-alloc-split -stats |& \
-; RUN:   grep {pre-alloc-split} | count 3
+; RUN:   grep {pre-alloc-split} | count 2
 
-define i32 @t() {
+define i32 @t(i32 %arg) {
 entry:
 	br label %bb6
 
@@ -12,7 +12,7 @@
 	br label %bb6
 
 bb6:		; preds = %.noexc6, %entry
-	%1 = uitofp i32 0 to double		; <double> [#uses=1]
+	%1 = uitofp i32 %arg to double		; <double> [#uses=1]
 	%2 = sub i32 0, 0		; <i32> [#uses=1]
 	%3 = invoke i8* @_Znwm(i32 0)
 			to label %.noexc6 unwind label %lpad32		; <i8*> [#uses=1]





More information about the llvm-commits mailing list