[AArch64] Fold max and min reduction builtins to tree.

James Greenhalgh james.greenhalgh@arm.com
Tue Apr 30 16:10:00 GMT 2013


Hi,

This patch folds the signed versions of min and max reduction
builtins to tree form. We can't safely fold the unsigned
versions as they do not currently have the correct type.

We must use TARGET_GIMPLE_FOLD_BUILTIN as REDUC_MIN_EXPR
is not a valid GENERIC code.

Regression tested on aarch64-none-elf with no regressions.

Thanks,
James

---
gcc/

2013-04-30  James Greenhalgh  <james.greenhalgh@arm.com>

	* config/aarch64/aarch64-builtins
	(aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-AArch64-Fold-max-and-min-reduction-builtins-to-tree.patch
Type: text/x-patch
Size: 752 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130430/c4cfaf5a/attachment.bin>


More information about the Gcc-patches mailing list