------- Comment #2 from uros at kss-loka dot si  2006-07-05 08:25 -------
Created an attachment (id=11824)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11824&action=view)
Patch to implement pow(x,1.0/3.0) = cbrt(x) optimization

I have the patch that implements the optimization ready, just waiting for the
mainline to open again. Should I post it to gcc-patches anyway?

2006-07-05  Uros Bizjak  <[EMAIL PROTECTED]>

        * builtins.c (fold_builtin): Fold pow(x,1.0/3.0) as cbrt(x) if
        flag_unsafe_math_optimizations is set.

testsuite:

        * gcc.dg/builtins-8.c: Also check pow(x,1.0/3.0) to cbrt(x)
        transformation.


-- 


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

Reply via email to