Skip to content

Simplify sinh(x) / cosh(x) -> tanh(x) with fast-math #78871

Open
@k-arrows

Description

@k-arrows

It seems that the simplification sin(x) / cos(x) -> tan(x) has been already implemented, but the same applies for hyperbolic function(s).

https://godbolt.org/z/WqYfKxr7K

For those who are interested in floating-point arithmetic optimization, I think this can be added to #34959.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions