Re: Move tan simplifications to match.pd

2015-10-20 Thread Richard Biener
On Tue, Oct 20, 2015 at 11:14 AM, Richard Sandiford wrote: > Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi. > OK to install? Ok. Thanks, Richard. > Thanks, > Richard > > > gcc/ > * builtins.c (fold_builtin_tab): Delete. > (fold_builtin_1): Handle constant t

Move tan simplifications to match.pd

2015-10-20 Thread Richard Sandiford
Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi. OK to install? Thanks, Richard gcc/ * builtins.c (fold_builtin_tab): Delete. (fold_builtin_1): Handle constant tan arguments here. * match.pd: Simplify (tan (atan x)) to x. diff --git a/gcc/builtins.c b