[llvm-bugs] [Bug 32814] New: Missed optimization: (int)x + 1 == (int)y - 1

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 26 12:30:35 PDT 2017


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

            Bug ID: 32814
           Summary: Missed optimization: (int)x + 1 == (int)y - 1
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: tilkax at gmail.com
                CC: llvm-bugs at lists.llvm.org

int(x) + 1 == int(y) - 1

is not being optimized to

int(x) + 2 == int(y)

Proof: http://rise4fun.com/Alive/vaC

-- 
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/20170426/d8f9ec41/attachment.html>


More information about the llvm-bugs mailing list