[llvm-bugs] [Bug 31567] New: Canonicalize C99 cos(x) -> @llvm.cos in SimplifyLibCalls
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jan 6 18:04:02 PST 2017
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: unassignedbugs at nondot.org
Reporter: davide at freebsd.org
CC: llvm-bugs at lists.llvm.org, llvm-dev at redking.me.uk,
simon.f.whittaker at gmail.com
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170107/8336e3de/attachment.html>
More information about the llvm-bugs
mailing list