Don't enable the post-RA scheduler on x86 except at -O3. In its
authorDan Gohman <gohman@apple.com>
Mon, 7 Dec 2009 19:04:31 +0000 (19:04 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 7 Dec 2009 19:04:31 +0000 (19:04 +0000)
current form, it is too expensive in compile time.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90781 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86Subtarget.cpp
test/CodeGen/X86/2007-01-08-InstrSched.ll
test/CodeGen/X86/2009-09-19-SchedCustomLoweringBug.ll
test/CodeGen/X86/sink-hoist.ll
test/CodeGen/X86/sse2.ll
test/CodeGen/X86/sse3.ll
test/CodeGen/X86/tail-opts.ll
test/CodeGen/X86/tailcallstack64.ll
test/CodeGen/X86/widen_arith-3.ll

index 661f56046d097e860b67f91a83e50e3eeb81a2f6..75cdbada1b5a869ed1f8f5f7c6ea15390a40d67c 100644 (file)
@@ -367,5 +367,5 @@ bool X86Subtarget::enablePostRAScheduler(
             RegClassVector& CriticalPathRCs) const {
   Mode = TargetSubtarget::ANTIDEP_CRITICAL;
   CriticalPathRCs.clear();
-  return OptLevel >= CodeGenOpt::Default;
+  return OptLevel >= CodeGenOpt::Aggressive;
 }
index 81f0a1d7244dab7f762b743288f28cdaea365b6b..317ed0a4f7d37916913aa0572b3c82cf0bd47a87 100644 (file)
@@ -1,5 +1,5 @@
 ; PR1075
-; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-apple-darwin -O3 | FileCheck %s
 
 define float @foo(float %x) nounwind {
     %tmp1 = fmul float %x, 3.000000e+00
index d372da336769e99353fb54534260f8ecebb93f6d..8cb538b07359d6ff44c474c83c4dad78f214240e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=i386-apple-darwin10 | FileCheck %s
+; RUN: llc < %s -mtriple=i386-apple-darwin10 -post-RA-scheduler=true | FileCheck %s
 
 ; PR4958
 
index f8d542e525c61f827b7a768a079ec53911f47eae..01d73736d6c22568ee71e583cd38ac13f6f1d535 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86-64 -asm-verbose=false -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
+; RUN: llc < %s -march=x86-64 -asm-verbose=false -mtriple=x86_64-unknown-linux-gnu -post-RA-scheduler=true | FileCheck %s
 
 ; Currently, floating-point selects are lowered to CFG triangles.
 ; This means that one side of the select is always unconditionally
index 58fe28b09fe9a750177b3467120ca5a19b545dcf..f2b8010d4138b89c0ab4ab07da6751f473751768 100644 (file)
@@ -1,5 +1,5 @@
 ; Tests for SSE2 and below, without SSE3+.
-; RUN: llc < %s -mtriple=i386-apple-darwin10 -mcpu=pentium4 | FileCheck %s
+; RUN: llc < %s -mtriple=i386-apple-darwin10 -mcpu=pentium4 -O3 | FileCheck %s
 
 define void @t1(<2 x double>* %r, <2 x double>* %A, double %B) nounwind  {
        %tmp3 = load <2 x double>* %A, align 16
index 21c1a3c812237921cc5422161f5dc3f89041634a..5550d263389acc91b7d8568ddeb938a93d7ace4f 100644 (file)
@@ -1,6 +1,6 @@
 ; These are tests for SSE3 codegen.  Yonah has SSE3 and earlier but not SSSE3+.
 
-; RUN: llc < %s -march=x86-64 -mcpu=yonah -mtriple=i686-apple-darwin9\
+; RUN: llc < %s -march=x86-64 -mcpu=yonah -mtriple=i686-apple-darwin9 -O3 \
 ; RUN:              | FileCheck %s --check-prefix=X64
 
 ; Test for v8xi16 lowering where we extract the first element of the vector and
index 0d86e561325cf65379ef265bc1439ff9e2bb39ba..c70c9fadd2c572d2a18a6b72205fb6faa7e1c9aa 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86-64 -mtriple=x86_64-unknown-linux-gnu -asm-verbose=false | FileCheck %s
+; RUN: llc < %s -march=x86-64 -mtriple=x86_64-unknown-linux-gnu -asm-verbose=false -post-RA-scheduler=true | FileCheck %s
 
 declare void @bar(i32)
 declare void @car(i32)
index 69018aa13dd2c33db02d54171a2280331641f57c..d05dff8928bac29d2213133ea292a431f2507876 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -tailcallopt -march=x86-64 | FileCheck %s
+; RUN: llc < %s -tailcallopt -march=x86-64 -post-RA-scheduler=true | FileCheck %s
 
 ; Check that lowered arguments on the stack do not overwrite each other.
 ; Add %in1 %p1 to a different temporary register (%eax).
index a2b8b8291ead584256e4255dc3fe5625a1403865..1f2c25068ca4c45f5b7212864a8ccce7effe937e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 -mattr=+sse42 -disable-mmx | FileCheck %s
+; RUN: llc < %s -march=x86 -mattr=+sse42 -disable-mmx -post-RA-scheduler=true | FileCheck %s
 ; CHECK: paddw
 ; CHECK: pextrw
 ; CHECK: movd