[PATCH] [AArch64] Codegen VMAX/VMIN for safe math cases

Artyom Skrobov artyom.skrobov at arm.com
Tue May 12 03:10:26 PDT 2015


Hello,

The attached patch copies PerformSELECT_CCCombine from ARMISelLowering into
AArch64ISelLowering, in order to enable emitting VMIN/VMAX for safe math
cases.
The previous code in AArch64TargetLowering::LowerSELECT_CC only emitted
VMIN/VMAX in NoNaNsFPMath mode.

After James' patch with MIN/MAX intrinsics goes in, they can be extended to
support floating-point min/max, and therefore to factor out this common code
from ARM and AArch64 backends into somewhere shared and reusable.

OK to commit?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vmax-vmin-safe.patch
Type: application/octet-stream
Size: 8749 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150512/688f5365/attachment.obj>


More information about the llvm-commits mailing list