[llvm-commits] [PATCH] Integer max/min intrinsics

Redmond, Paul paul.redmond at intel.com
Mon Dec 17 11:58:27 PST 2012


Hi,

The attached patch adds the integer max/min intrinsics discussed here: http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-December/056785.html

This patch includes:

- new smin/smax/umin/umax intrinsics
- generic lowering to cmp-select during selection dag building
- language ref documentation
- basic lit tests

This patch does not include:

- optimizations operating on the new intrinsics (e.g., no constant folding)
- compare-select to max/min transformations

The intention is to add support for optimization/transformation in subsequent patches. Also, floating point max/min intrinsics will be addressed separately.


paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: int_maxmin.diff
Type: application/octet-stream
Size: 11350 bytes
Desc: int_maxmin.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121217/04a5cc14/attachment.obj>


More information about the llvm-commits mailing list