Displaying 1 result from an estimated 1 matches for "d34278".
2017 Jul 01
8
[IR canonicalization] 6 ways to choose {-1,0,1}
...cmp sgt i32 %0, %1
%4 = zext i1 %3 to i32
%5 = icmp slt i32 %0, %1
%6 = zext i1 %5 to i32
%7 = sub nsw i32 %4, %6
ret i32 %7
}
https://godbolt.org/g/UnM9H7
Show these are logically equivalent:
http://rise4fun.com/Alive/b4D
Recent patch related to this pattern:
https://reviews.llvm.org/D34278
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170701/ee76109b/attachment.html>