[Bug tree-optimization/32685] New: Missed changing of sin into sinf (likewise for cos to cosf)

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jul 9 03:26:00 GMT 2007


Testcase:
float _Complex quantum_cexp(float phi)
{
  return __builtin_cos(phi) + 1i * __builtin_sin(phi);
}

--- CUT ----
We should able to change cos/sin here into cosf/sinf (and then into cexpfi).
This shows up in libquantum (which is part of SPEC 2k6 but the sources I am
using to test are the open soruce ones and not the SPEC 2k6 ones).


-- 
           Summary: Missed changing of sin into sinf (likewise for cos to
                    cosf)
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32685



More information about the Gcc-bugs mailing list