diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-10-27 09:29:40 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-10-27 09:29:40 +0000 |
commit | 4d7836c4361c5ae2f703c03e789ac0c533dd80be (patch) | |
tree | 77a20b470231501dd40126c4597a20cc52530819 /gcc/tree-vect-generic.c | |
parent | 4aecfe19869d2ba26ac4e4a967eb0b0cbf9b0114 (diff) | |
download | gcc-4d7836c4361c5ae2f703c03e789ac0c533dd80be.zip gcc-4d7836c4361c5ae2f703c03e789ac0c533dd80be.tar.gz gcc-4d7836c4361c5ae2f703c03e789ac0c533dd80be.tar.bz2 |
Move hypot folds to match.pd
Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi.
gcc/
* builtins.c (fold_builtin_hypot): Delete.
(fold_builtin_2): Handle constant hypot arguments here.
* match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
hypot(x, x) to fabs(x)*sqrt(2).
From-SVN: r229407
Diffstat (limited to 'gcc/tree-vect-generic.c')
0 files changed, 0 insertions, 0 deletions