[Bug rtl-optimization/20219] New: Missed optimisation sin / tan --> cos

christophe dot jaillet at wanadoo dot fr gcc-bugzilla@gcc.gnu.org
Sat Feb 26 22:27:00 GMT 2005


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



More information about the Gcc-bugs mailing list