[llvm-bugs] [Bug 37554] New: [X86][F16C] Replace __builtin_ia32_vcvtph2ps* with generic code

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 22 11:40:13 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37554

            Bug ID: 37554
           Summary: [X86][F16C] Replace __builtin_ia32_vcvtph2ps* with
                    generic code
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
                    spatel+llvm at rotateright.com

Inspired by https://reviews.llvm.org/D47174, it should be possible to replace
the __builtin_ia32_vcvtph2ps* intrinsics with generic half2float conversions.

This would require a little work in the backend and legalizers as we currently
don't do a good job of lowering such code (see
llvm\test\CodeGen\X86\vector-half-conversions.ll)

InstCombiner::visitCallInst already has some basic constant folding and
demanded elts support.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180522/9ab6ebc5/attachment.html>


More information about the llvm-bugs mailing list