[llvm-bugs] [Bug 38345] New: Fold Select with XOR

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 27 14:53:23 PDT 2018


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

            Bug ID: 38345
           Summary: Fold Select with XOR
           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

Pattern:
%B = icmp eq i32 %A, 0
%C = xor i32 %A, %V
%D = select i1 %B, i32 %C, i32 %x
ret i32 %D
  =>
%D = select i1 %B, i32 %V, i32 %x
ret i32 %D 


https://rise4fun.com/Alive/43J

-- 
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/20180727/195e9c7c/attachment.html>


More information about the llvm-bugs mailing list