This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]