summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/lsr-reuse-trunc.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-11-14 19:48:55 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-11-14 19:48:55 +0000
commit2a4410df44cd710e20b3f12873c35405830d66fb (patch)
tree54cfc0134dfb9db90186e24b78f23932a37edf8b /test/CodeGen/X86/lsr-reuse-trunc.ll
parenta77214a4c43d7a0c49c348439c6887f28bd6d53d (diff)
downloadllvm-2a4410df44cd710e20b3f12873c35405830d66fb.tar.gz
llvm-2a4410df44cd710e20b3f12873c35405830d66fb.tar.bz2
llvm-2a4410df44cd710e20b3f12873c35405830d66fb.tar.xz
Teach two-address pass to re-schedule two-address instructions (or the kill
instructions of the two-address operands) in order to avoid inserting copies. This fixes the few regressions introduced when the two-address hack was disabled (without regressing the improvements). rdar://10422688 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144559 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/lsr-reuse-trunc.ll')
-rw-r--r--test/CodeGen/X86/lsr-reuse-trunc.ll7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/CodeGen/X86/lsr-reuse-trunc.ll b/test/CodeGen/X86/lsr-reuse-trunc.ll
index 5f5e0937a3..1f87089f80 100644
--- a/test/CodeGen/X86/lsr-reuse-trunc.ll
+++ b/test/CodeGen/X86/lsr-reuse-trunc.ll
@@ -4,14 +4,13 @@
; Full strength reduction wouldn't reduce register pressure, so LSR should
; stick with indexing here.
-; FIXME: This is worse off from disabling of scheduler 2-address hack.
; CHECK: movaps (%{{rsi|rdx}},%rax,4), [[X3:%xmm[0-9]+]]
-; CHECK: leaq 4(%rax), %{{rcx|r9}}
; CHECK: cvtdq2ps
; CHECK: orps {{%xmm[0-9]+}}, [[X4:%xmm[0-9]+]]
; CHECK: movaps [[X4]], (%{{rdi|rcx}},%rax,4)
-; CHECK: cmpl %{{ecx|r9d}}, (%{{rdx|r8}})
-; CHECK: jg
+; CHECK: addq $4, %rax
+; CHECK: cmpl %eax, (%{{rdx|r8}})
+; CHECK-NEXT: jg
define void @vvfloorf(float* nocapture %y, float* nocapture %x, i32* nocapture %n) nounwind {
entry: