Skip to content

Commit 2089dd0

Browse files
committed
Merge r127441 from mainline.
llvm-svn: 127443
1 parent 50f69c5 commit 2089dd0

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,13 @@ X86TargetLowering::X86TargetLowering(X86TargetMachine &TM)
221221

222222
// X86 is weird, it always uses i8 for shift amounts and setcc results.
223223
setBooleanContents(ZeroOrOneBooleanContent);
224-
setSchedulingPreference(Sched::ILP);
224+
225+
// For 64-bit since we have so many registers use the ILP scheduler, for
226+
// 32-bit code use the register pressure specific scheduling.
227+
if (Subtarget->is64Bit())
228+
setSchedulingPreference(Sched::ILP);
229+
else
230+
setSchedulingPreference(Sched::RegPressure);
225231
setStackPointerRegisterToSaveRestore(X86StackPtr);
226232

227233
if (Subtarget->isTargetWindows() && !Subtarget->isTargetCygMing()) {

llvm/test/CodeGen/X86/2006-05-01-SchedCausingSpills.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
; XFAIL: *
21
; RUN: llc < %s -march=x86 -mcpu=yonah -stats |& \
32
; RUN: not grep {Number of register spills}
43
; END.

llvm/test/CodeGen/X86/2008-08-31-EH_RETURN32.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; Check that eh_return & unwind_init were properly lowered
22
; RUN: llc < %s | grep %ebp | count 7
3-
; RUN: llc < %s | grep %edx | count 5
3+
; RUN: llc < %s | grep %ecx | count 5
44

55
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
66
target triple = "i386-pc-linux"

llvm/test/CodeGen/X86/fold-pcmpeqd-0.ll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
; RUN: llc < %s -mtriple=i386-apple-darwin -mcpu=yonah | grep pcmpeqd | count 1
1+
; RUN: llc < %s -mtriple=i386-apple-darwin -mcpu=yonah | not grep pcmpeqd
2+
; RUN: llc < %s -mtriple=i386-apple-darwin -mcpu=yonah | grep orps | grep CPI0_2 | count 2
23
; RUN: llc < %s -mtriple=x86_64-apple-darwin | grep pcmpeqd | count 1
34

45
; This testcase shouldn't need to spill the -1 value,

llvm/test/CodeGen/X86/pr1505b.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
; XFAIL: *
21
; RUN: llc < %s -mcpu=i486 | grep fstpl | count 5
32
; RUN: llc < %s -mcpu=i486 | grep fstps | count 2
43
; PR1505

llvm/test/CodeGen/X86/v-binop-widen.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; RUN: llc -march=x86 -mattr=+sse < %s | FileCheck %s
2-
; CHECK: divps
32
; CHECK: divss
43
; CHECK: divps
4+
; CHECK: divps
55

66
%vec = type <9 x float>
77
define %vec @vecdiv( %vec %p1, %vec %p2)

0 commit comments

Comments
 (0)