[LLVMbugs] [Bug 4916] New: Optimize add and unsigned compare to add-with-overflow

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Sep 7 12:19:54 PDT 2009


           Summary: Optimize add and unsigned compare to add-with-overflow
           Product: libraries
           Version: trunk
          Platform: PC
               URL: http://codepad.org/BqJOSpv6
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rjmccall at apple.com
                CC: llvmbugs at cs.uiuc.edu

This is a forwarded complaint by "bearophile" on LLVM IRC, who unfortunately
never files bugs.

The URL contains the original test case.

llvm-gcc: gcc version 4.2.1 (Based on Apple Inc. build 5636) (LLVM build)

The following should be optimized to an add-with-overflow:

%c = add iN %a, $b
%d = icmp ult iN %c, %a

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list