This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/20219] New: Missed optimisation sin / tan --> cos
- From: "christophe dot jaillet at wanadoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Feb 2005 23:49:17 -0000
- Subject: [Bug rtl-optimization/20219] New: Missed optimisation sin / tan --> cos
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
GCC knows how to optimise
tan * cos --> sin (fold-const line 7734)
cos * tan --> sin
sin / cos --> tan (fold-const line 8080)
cos / sin --> 1.0 / tan (fold-const line 8094)
but misses
sin / tan --> cos
tan / sin --> 1.0 / cos
--
Summary: Missed optimisation sin / tan --> cos
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: christophe dot jaillet at wanadoo dot fr
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20219