[llvm-bugs] [Bug 37949] New: [X86] library call for rint. GCC: cvtss2si/cvtsd2si

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 26 22:11:55 PDT 2018


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

            Bug ID: 37949
           Summary: [X86] library call for rint. GCC: cvtss2si/cvtsd2si
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: Roland.Schulz at Intel.com
                CC: llvm-bugs at lists.llvm.org

lrintf/llrint are missed optimization opportunities compared to GCC.
GCC (at least since 4.8) with "-O3 -fno-math-errno" compiles them into
cvtss2si/cvtsd2si and only uses library calls without those flags. Clang always
compiles them into library calls.

-- 
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/20180627/453bd643/attachment.html>


More information about the llvm-bugs mailing list