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

            Bug ID: 36950
           Summary: Missing canonicalization of select of bitchecks into
                    icmp
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedb...@nondot.org
          Reporter: lebedev...@gmail.com
                CC: llvm-bugs@lists.llvm.org

Copied from https://bugs.llvm.org/show_bug.cgi?id=17564

There is a missing instcombine to get rid of select
https://rise4fun.com/Alive/gEy

After which the assembly is much better:
https://godbolt.org/g/iAYRup

The only difference after that is in "and edi, 3" vs. "test dil, 3"

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to