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

            Bug ID: 38428
           Summary: xor i1 (xor i1 %x, %y), true  ->  icmp eq i1 %x, %y
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

%t = xor i1 %x, %y
%r = xor i1 %t, true
  =>
%r = icmp eq i1 %x, %y 

https://godbolt.org/g/52qJrW
https://rise4fun.com/Alive/LNo

Not sure, is this for instcombine?

Stumbled into while trying to come with the sign-change test for sanitizer.

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

Reply via email to