This is the mail archive of the gcc-patches@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]

Re: [PATCH, middle-end]: Convert pow(x,1.0/3.0) to cbrt(x)


Roger Sayle wrote:

On Thu, 6 Jul 2006, Uros Bizjak wrote:
This patch also fixes enhancement PR middle-end/28252.

2006-07-05 Uros Bizjak <uros@kss-loka.si>

        * 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.

This is OK for mainline, once we return to stage 1. Please remember to put PR middle-end/28252 in the ChangeLog entries.



Patch was committed to mainline after bootstrapping on x86_64-pc-linux-gnu. Patch was regtested for c, c++ and fortran.

Uros.


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