diff options
| author | Craig Topper <craig.topper@intel.com> | 2019-02-16 03:34:54 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2019-02-16 03:34:54 +0000 |
| commit | 61da80584d7d6c99c5c3b745685a1fb44dcff164 (patch) | |
| tree | 6de93924b12893a12738d08e0f44cfbb611a1bb8 /llvm/test/CodeGen/X86/fast-isel-uint-float-conversion-x86-64.ll | |
| parent | f6e77311502c091f5fad236be5b830801ec13332 (diff) | |
| download | bcm5719-llvm-61da80584d7d6c99c5c3b745685a1fb44dcff164.tar.gz bcm5719-llvm-61da80584d7d6c99c5c3b745685a1fb44dcff164.zip | |
[X86] Don't prevent load folding for cvtsi2ss/cvtsi2sd based on hasPartialRegUpdate.
Preventing the load fold won't fix the partial register update since the
input we can fold is a GPR. So it will do nothing to prevent a false dependency
on an XMM register.
llvm-svn: 354193
Diffstat (limited to 'llvm/test/CodeGen/X86/fast-isel-uint-float-conversion-x86-64.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/fast-isel-uint-float-conversion-x86-64.ll | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel-uint-float-conversion-x86-64.ll b/llvm/test/CodeGen/X86/fast-isel-uint-float-conversion-x86-64.ll index 60d2903ad09..22d8aa7b2d9 100644 --- a/llvm/test/CodeGen/X86/fast-isel-uint-float-conversion-x86-64.ll +++ b/llvm/test/CodeGen/X86/fast-isel-uint-float-conversion-x86-64.ll @@ -15,8 +15,7 @@ entry: define double @long_to_double_rm(i64* %a) { ; ALL-LABEL: long_to_double_rm: ; ALL: # %bb.0: # %entry -; ALL-NEXT: movq (%rdi), %rax -; ALL-NEXT: vcvtusi2sdq %rax, %xmm0, %xmm0 +; ALL-NEXT: vcvtusi2sdq (%rdi), %xmm0, %xmm0 ; ALL-NEXT: retq entry: %0 = load i64, i64* %a @@ -48,8 +47,7 @@ entry: define float @long_to_float_rm(i64* %a) { ; ALL-LABEL: long_to_float_rm: ; ALL: # %bb.0: # %entry -; ALL-NEXT: movq (%rdi), %rax -; ALL-NEXT: vcvtusi2ssq %rax, %xmm0, %xmm0 +; ALL-NEXT: vcvtusi2ssq (%rdi), %xmm0, %xmm0 ; ALL-NEXT: retq entry: %0 = load i64, i64* %a |

