re PR tree-optimization/86829 (Missing sin(atan(x)) and cos(atan(x)) optimizations)
authorGiuliano Belinassi <giuliano.belinassi@usp.br>
Thu, 11 Oct 2018 21:06:12 +0000 (21:06 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 11 Oct 2018 21:06:12 +0000 (15:06 -0600)
commit121ef08b0b964ff4e7072a6af14613e68788abc4
treee967a89e2270c12ad7a8fa8d6fbf6f4a32132efd
parentea010af6b4d780261b791999e43ba056edce2af0
re PR tree-optimization/86829 (Missing sin(atan(x)) and cos(atan(x)) optimizations)

PR tree-optimization/86829
* match.pd (sin (atan (x))): New simplification rules.
(cos (atan (x))): Likewise.
* real.c (build_sinatan_real): New function.
* real.h (build_sinatan_real): Prototype.

PR tree-optimization/86829
* gcc.dg/sinatan-1.c: New test.
* gcc.dg/sinatan-2.c: New test.
* gcc.dg/sinatan-3.c: New test.

From-SVN: r265064
gcc/ChangeLog
gcc/match.pd
gcc/real.c
gcc/real.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/sinatan-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/sinatan-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/sinatan-3.c [new file with mode: 0644]