[PATCH, middle-end]: Convert pow(x,1.0/3.0) to cbrt(x)
Uros Bizjak
ubizjak@gmail.com
Thu Jul 6 10:15:00 GMT 2006
Hello!
This patch implements conversion of pow(x,1.0/3.0) to cbrt(x). Patch
is bootstrapped on i686-pc-linux-gnu, regression tested on c,c++ and
fortran.
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.
:ADDPATCH middle-end:
Uros.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cbrt.diff
Type: application/octet-stream
Size: 1573 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060706/2da9f797/attachment.obj>
More information about the Gcc-patches
mailing list