[llvm] r335715 - [AArch64] Remove Duplicate FP16 Patterns with same encoding, match on existing patterns

Luke Geeson via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 27 07:22:29 PDT 2018


Hi Tim,

Thanks for pointing that out, I agree, shall revert that specific case and fix.

Thanks

Luke


________________________________
From: Tim Northover <t.p.northover at gmail.com>
Sent: 27 June 2018 14:59:54
To: Luke Geeson
Cc: LLVM Commits
Subject: Re: [llvm] r335715 - [AArch64] Remove Duplicate FP16 Patterns with same encoding, match on existing patterns

Hi Luke,

On Wed, 27 Jun 2018 at 10:24, Luke Geeson via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
>  define dso_local half @test_vcvth_n_f16_s64_1(i64 %a) {
>  ; CHECK-LABEL: test_vcvth_n_f16_s64_1:
>  ; CHECK:         fmov d0, x0
> -; CHECK-NEXT:    fcvtzs h0, d0, #1
> +; CHECK-NEXT:    scvtf h0, h0, #1
>  ; CHECK-NEXT:    ret
>  entry:
>    %vcvth_n_f16_s64 = tail call half @llvm.aarch64.neon.vcvtfxs2fp.f16.i64(i64 %a, i32 1)

This doesn't look right to me. We're discarding the high bits of %a
before doing the conversion.

I suspect only the i16 versions would ever want to use these patterns
anyway (since "scvtf h0, x0, #1" exists).

Cheers.

Tim.
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180627/b3988376/attachment.html>


More information about the llvm-commits mailing list