diff options
author | Manman Ren <mren@apple.com> | 2012-08-02 00:56:42 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2012-08-02 00:56:42 +0000 |
commit | d7d003c2b7b7f657eed364e4ac06f4ab32fc8c2d (patch) | |
tree | a135e2b9b794ea8b4b12c05e4a2a768d32577f59 /test/CodeGen/X86/break-sse-dep.ll | |
parent | e5c79a5c2542fa0d852df28b5ee9de8dfef694d8 (diff) | |
download | external_llvm-d7d003c2b7b7f657eed364e4ac06f4ab32fc8c2d.zip external_llvm-d7d003c2b7b7f657eed364e4ac06f4ab32fc8c2d.tar.gz external_llvm-d7d003c2b7b7f657eed364e4ac06f4ab32fc8c2d.tar.bz2 |
X86 Peephole: fold loads to the source register operand if possible.
Machine CSE and other optimizations can remove instructions so folding
is possible at peephole while not possible at ISel.
This patch is a rework of r160919 and was tested on clang self-host on my local
machine.
rdar://10554090 and rdar://11873276
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161152 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/break-sse-dep.ll')
-rw-r--r-- | test/CodeGen/X86/break-sse-dep.ll | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/CodeGen/X86/break-sse-dep.ll b/test/CodeGen/X86/break-sse-dep.ll index 3e65867..4d80189 100644 --- a/test/CodeGen/X86/break-sse-dep.ll +++ b/test/CodeGen/X86/break-sse-dep.ll @@ -34,8 +34,7 @@ entry: define double @squirt(double* %x) nounwind { entry: ; CHECK: squirt: -; CHECK: movsd ([[A0]]), %xmm0 -; CHECK: sqrtsd %xmm0, %xmm0 +; CHECK: sqrtsd ([[A0]]), %xmm0 %z = load double* %x %t = call double @llvm.sqrt.f64(double %z) ret double %t |