mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-16 15:08:59 +00:00
Use the source-order scheduler instead of the "fast" scheduler at -O0,
because it's more likely to keep debug line information in its original order. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108496 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
48bf8f0c3a
commit
e667e01723
@ -132,7 +132,7 @@ namespace llvm {
|
||||
const TargetLowering &TLI = IS->getTargetLowering();
|
||||
|
||||
if (OptLevel == CodeGenOpt::None)
|
||||
return createFastDAGScheduler(IS, OptLevel);
|
||||
return createSourceListDAGScheduler(IS, OptLevel);
|
||||
if (TLI.getSchedulingPreference() == Sched::Latency)
|
||||
return createTDListDAGScheduler(IS, OptLevel);
|
||||
if (TLI.getSchedulingPreference() == Sched::RegPressure)
|
||||
|
@ -9,7 +9,7 @@ define i32 @test1(i32 %t3, i32* %t1) nounwind {
|
||||
%t15 = load i32* %t9 ; <i32> [#uses=1]
|
||||
ret i32 %t15
|
||||
; X32: test1:
|
||||
; X32: movl (%ecx,%eax,4), %eax
|
||||
; X32: movl (%eax,%ecx,4), %eax
|
||||
; X32: ret
|
||||
|
||||
; X64: test1:
|
||||
@ -23,7 +23,7 @@ define i32 @test2(i64 %t3, i32* %t1) nounwind {
|
||||
%t15 = load i32* %t9 ; <i32> [#uses=1]
|
||||
ret i32 %t15
|
||||
; X32: test2:
|
||||
; X32: movl (%eax,%ecx,4), %eax
|
||||
; X32: movl (%edx,%ecx,4), %eax
|
||||
; X32: ret
|
||||
|
||||
; X64: test2:
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llc < %s -march=x86 -O0 | grep {sarl \$80, %eax}
|
||||
; RUN: llc < %s -march=x86 -O0 | grep {sarl \$80, %e}
|
||||
; PR3242
|
||||
|
||||
define void @foo(i32 %x, i32* %p) nounwind {
|
||||
|
Loading…
x
Reference in New Issue
Block a user