[llvm-bugs] [Bug 38349] New: Missed bit pattern

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jul 28 07:33:11 PDT 2018


            Bug ID: 38349
           Summary: Missed bit pattern
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: david.bolvansky at gmail.com
                CC: llvm-bugs at lists.llvm.org

According to https://blog.regehr.org/archives/1192 this pattern occurs often in

int foo(int x, int y) {
    int k = x & 15;
    if(k == 0) {
        int p = x & 7;
        return p == 0; // true
    return y;

Alive proof: https://rise4fun.com/Alive/OhV

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/20180728/c2584944/attachment.html>

More information about the llvm-bugs mailing list