optimize tanh(x) / sinh (x) to 1/ cosh (x)
authorVitor Guidi <vitor.guidi@usp.br>
Wed, 3 Jun 2020 23:01:21 +0000 (17:01 -0600)
committerJeff Law <law@redhat.com>
Wed, 3 Jun 2020 23:01:21 +0000 (17:01 -0600)
commit29e304fd5f9097335c5d7d1b16f139439eeabe1f
treeb600d7d8c33f52e02cc021659ed599916f173660
parent817738fdf1ea368e47da4822dfe9ee1a7deb477b
optimize tanh(x) / sinh (x) to 1/ cosh (x)

gcc/
* match.pd (tanh/sinh -> 1/cosh): New simplification.

gcc/testsuite

* gcc.dg/tanhbysinh.c: New testcase.
gcc/match.pd
gcc/testsuite/gcc.dg/tanhbysinh.c [new file with mode: 0644]