[llvm-bugs] [Bug 52168] New: Failure to optimize 128-bit division

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 13 15:13:43 PDT 2021


            Bug ID: 52168
           Summary: Failure to optimize 128-bit division
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: gabravier at gmail.com
                CC: llvm-bugs at lists.llvm.org

__int128 b(__int128 j)
    return j / 5;

This can be inlined into a series of operations avoiding the division, but LLVM
just outputs a call to __divti3. GCC does this optimization.

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/20211013/27bf5a2b/attachment.html>

More information about the llvm-bugs mailing list