Displaying 1 result from an estimated 1 matches for "1059703".
Did you mean:
1059003
2016 Nov 07
5
should we have IR intrinsics for integer min/max?
Hi -
The answer to this question may help to resolve larger questions about
intrinsics and vectorization that were discussed at the dev mtg last week,
but let's start with the basics:
Which, if any, of these is the canonical IR?
; ret = x < y ? 0 : x-y
define i32 @max1(i32 %x, i32 %y) {
%sub = sub nsw i32 %x, %y
%cmp = icmp slt i32 %x, %y ; cmp is independent of sub
%sel = select