[LLVMdev] max/min intrinsics

Nadav Rotem nrotem at apple.com
Mon Dec 17 11:20:08 PST 2012


Maybe we can have two versions of the intrinsic function, "ordered" and "unordered", just like fcmp has [1].  Would that work ?

[1] - http://llvm.org/docs/LangRef.html#fcmp-instruction



On Dec 17, 2012, at 11:14 AM, "Schoedel, Kevin P" <kevin.p.schoedel at intel.com> wrote:

> At Monday, December 17, 2012 2:05 PM, Nadav Rotem [mailto:nrotem at apple.com]  wrote:
>> This part worries me.  The new min/max intrinsics will only be useful if we could pattern match cmp/select into them. 
> 
> Yes, that's the obvious alternative. I don't think we have any strong opinion either way, and fcmp/select is certainly easier to implement.
> 
> -- 
> Kevin Schoedel, Software Developer, Intel of Canada
> <kevin.p.schoedel at intel.com>      +1 (519) 772-2580
> 
> 
> 
> 




More information about the llvm-dev mailing list