Enable -coalescer-commute-instrs by default.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 26 Feb 2008 20:40:22 +0000 (20:40 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 26 Feb 2008 20:40:22 +0000 (20:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47623 91177308-0d34-0410-b5e6-96231b3b80d8

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

index c723c9eeae1ac77436b1943cc92c8b9b439597d2..f015ad5c1f391d35820b1bbde76e3fcba358673d 100644 (file)
@@ -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",
index 7ea9fbd2cdd54d58529f80953a8ce9c4a5856afb..ac85a9d72bbd131e2797b82a20b2d480455b91c2 100644 (file)
@@ -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:
index 6613ac2dbf75ff7d37da5bf29a8df1d02d24ea7f..0fae2a6594665efb850b62713375ec39ffd4f9b1 100644 (file)
@@ -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]
index 57204eb587f25aec72ea3822f1f0ea491f05cee4..ea756372253622cf77a80c042f185afe6ea47985 100644 (file)
@@ -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* }