mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
e3e67d4a0a
This changes the SelectionDAG scheduling preference to source order. Soon, the SelectionDAG scheduler can be bypassed saving a nice chunk of compile time. Performance differences that result from this change are often a consequence of register coalescing. The register coalescer is far from perfect. Bugs can be filed for deficiencies. On x86 SandyBridge/Haswell, the source order schedule is often preserved, particularly for small blocks. Register pressure is generally improved over the SD scheduler's ILP mode. However, we are still able to handle large blocks that require latency hiding, unlike the SD scheduler's BURR mode. MI scheduler also attempts to discover the critical path in single-block loops and adjust heuristics accordingly. The MI scheduler relies on the new machine model. This is currently unimplemented for AVX, so we may not be generating the best code yet. Unit tests are updated so they don't depend on SD scheduling heuristics. llvm-svn: 192750
21 lines
832 B
LLVM
21 lines
832 B
LLVM
; RUN: llc < %s -mtriple=i686-apple-darwin -mattr=+sse2 -post-RA-scheduler=false | FileCheck %s
|
|
; CHECK: movsd %xmm{{[0-9]}}, 8(%esp)
|
|
; CHECK: xorl %eax, %eax
|
|
|
|
@d = external global double ; <double*> [#uses=1]
|
|
@c = external global double ; <double*> [#uses=1]
|
|
@b = external global double ; <double*> [#uses=1]
|
|
@a = external global double ; <double*> [#uses=1]
|
|
|
|
define i32 @foo() nounwind {
|
|
entry:
|
|
%0 = load double* @d, align 8 ; <double> [#uses=1]
|
|
%1 = load double* @c, align 8 ; <double> [#uses=1]
|
|
%2 = load double* @b, align 8 ; <double> [#uses=1]
|
|
%3 = load double* @a, align 8 ; <double> [#uses=1]
|
|
tail call fastcc void @bar( i32 0, i32 1, i32 2, double 1.000000e+00, double %3, double %2, double %1, double %0 ) nounwind
|
|
ret i32 0
|
|
}
|
|
|
|
declare fastcc void @bar(i32, i32, i32, double, double, double, double, double)
|