[llvm-commits] [llvm] r47623 - in /llvm/trunk: lib/CodeGen/SimpleRegisterCoalescing.cpp test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll test/CodeGen/X86/coalescer-commute1.ll test/CodeGen/X86/coalescer-commute3.ll

Evan Cheng evan.cheng at apple.com
Tue Feb 26 12:40:22 PST 2008


Author: evancheng
Date: Tue Feb 26 14:40:22 2008
New Revision: 47623

URL: http://llvm.org/viewvc/llvm-project?rev=47623&view=rev
Log:
Enable -coalescer-commute-instrs by default.

Modified:
    llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp
    llvm/trunk/test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll
    llvm/trunk/test/CodeGen/X86/coalescer-commute1.ll
    llvm/trunk/test/CodeGen/X86/coalescer-commute3.ll

Modified: llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp?rev=47623&r1=47622&r2=47623&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp (original)
+++ llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp Tue Feb 26 14:40:22 2008
@@ -55,7 +55,7 @@
 
   static cl::opt<bool>
   CommuteDef("coalescer-commute-instrs",
-             cl::init(false), cl::Hidden);
+             cl::init(true), cl::Hidden);
 
   static cl::opt<int>
   CommuteLimit("commute-limit",

Modified: llvm/trunk/test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll?rev=47623&r1=47622&r2=47623&view=diff

==============================================================================
--- llvm/trunk/test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll Tue Feb 26 14:40:22 2008
@@ -1,5 +1,5 @@
 ; RUN: llvm-as < %s | llc -o - -march=x86 -mattr=+mmx | grep paddq | count 2
-; RUN: llvm-as < %s | llc -o - -march=x86 -mattr=+mmx | grep movq | count 3
+; RUN: llvm-as < %s | llc -o - -march=x86 -mattr=+mmx | grep movq | count 2
 
 define <1 x i64> @unsigned_add3(<1 x i64>* %a, <1 x i64>* %b, i32 %count) {
 entry:

Modified: llvm/trunk/test/CodeGen/X86/coalescer-commute1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/coalescer-commute1.ll?rev=47623&r1=47622&r2=47623&view=diff

==============================================================================
--- llvm/trunk/test/CodeGen/X86/coalescer-commute1.ll (original)
+++ llvm/trunk/test/CodeGen/X86/coalescer-commute1.ll Tue Feb 26 14:40:22 2008
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin -mattr=+sse2 -coalescer-commute-instrs | not grep movaps
+; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin -mattr=+sse2 | not grep movaps
 ; PR1877
 
 @NNTOT = weak global i32 0		; <i32*> [#uses=1]

Modified: llvm/trunk/test/CodeGen/X86/coalescer-commute3.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/coalescer-commute3.ll?rev=47623&r1=47622&r2=47623&view=diff

==============================================================================
--- llvm/trunk/test/CodeGen/X86/coalescer-commute3.ll (original)
+++ llvm/trunk/test/CodeGen/X86/coalescer-commute3.ll Tue Feb 26 14:40:22 2008
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin -mattr=+sse2 -coalescer-commute-instrs | grep mov | count 6
+; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin -mattr=+sse2 | grep mov | count 6
 
 	%struct.quad_struct = type { i32, i32, %struct.quad_struct*, %struct.quad_struct*, %struct.quad_struct*, %struct.quad_struct*, %struct.quad_struct* }
 





More information about the llvm-commits mailing list