This change enables the sin(x) cos(x) -> sincos(x) optimization on GNU
target triples. This optimization was being inhibited when -ffast-math
wasn't set because sincos in GLibC does not set errno, while sin and cos
do. However, this optimization will only run if the attributes on the
sin/cos calls include readnone, which is how clang represents the fact
that it doesn't care about the errno values set by these functions (via
the -fno-math-errno flag).
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 6197 Build 6197: arc lint + arc unit
Event Timeline
Comment Actions
Ping? @hfinkel I believe you reviewed the change that introduced this check, any chance you'd like to review this refinement?