Move tan simplifications to match.pd
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 22 Oct 2015 08:32:01 +0000 (08:32 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 22 Oct 2015 08:32:01 +0000 (08:32 +0000)
commitcfed37a03b7a495b25e63d335e9f00e2dc9583f0
tree80022a09c55f138c2131bfb05b749ba87d72d72c
parent92c52eab974ce9e1c81d770724adb56846bcaa4b
Move tan simplifications to match.pd

Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi.

gcc/
* builtins.c (fold_builtin_tan): Delete.
(fold_builtin_1): Handle constant tan arguments here.
* match.pd: Simplify (tan (atan x)) to x.

From-SVN: r229166
gcc/ChangeLog
gcc/builtins.c
gcc/match.pd