summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-02-26 20:40:22 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-02-26 20:40:22 +0000
commitfa6b3668922773e8d446c5755728f64d0b19dc95 (patch)
tree6c67b3d1ef53f715c26b573535929e9795d6ae51
parentf120c6227129b600a2ba6bd7e974e371280393ad (diff)
downloadbcm5719-llvm-fa6b3668922773e8d446c5755728f64d0b19dc95.tar.gz
bcm5719-llvm-fa6b3668922773e8d446c5755728f64d0b19dc95.zip
Enable -coalescer-commute-instrs by default.
llvm-svn: 47623
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp2
-rw-r--r--llvm/test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll2
-rw-r--r--llvm/test/CodeGen/X86/coalescer-commute1.ll2
-rw-r--r--llvm/test/CodeGen/X86/coalescer-commute3.ll2
4 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
index c723c9eeae1..f015ad5c1f3 100644
--- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -55,7 +55,7 @@ namespace {
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",
diff --git a/llvm/test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll b/llvm/test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll
index 7ea9fbd2cdd..ac85a9d72bb 100644
--- a/llvm/test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll
+++ b/llvm/test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll
@@ -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:
diff --git a/llvm/test/CodeGen/X86/coalescer-commute1.ll b/llvm/test/CodeGen/X86/coalescer-commute1.ll
index 6613ac2dbf7..0fae2a65946 100644
--- a/llvm/test/CodeGen/X86/coalescer-commute1.ll
+++ b/llvm/test/CodeGen/X86/coalescer-commute1.ll
@@ -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]
diff --git a/llvm/test/CodeGen/X86/coalescer-commute3.ll b/llvm/test/CodeGen/X86/coalescer-commute3.ll
index 57204eb587f..ea756372253 100644
--- a/llvm/test/CodeGen/X86/coalescer-commute3.ll
+++ b/llvm/test/CodeGen/X86/coalescer-commute3.ll
@@ -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* }
OpenPOWER on IntegriCloud