https://llvm.org/bugs/show_bug.cgi?id=31567
Bug ID: 31567
Summary: Canonicalize C99 cos(x) -> @llvm.cos in
SimplifyLibCalls
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
We already do simplification on the intrinsic in InstCombine, e.g.
cos(-x) -> cos(x)
cos(fabs(x)) -> cos(x)
If we lower C99 cos(x) -> @llvm.cos we don't need to do the same simplifcations
in SimplifyLibCalls.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs