[PATCH] Make the _gfortran_pow* const
Andrew Pinski
pinskia@gmail.com
Sun Nov 26 08:38:00 GMT 2006
Hi,
This patch makes the _gfortran_pow* function constant functions as the
return value is only dependent on those values and they don't have any
special side effects.
This patch speeds up my father's code by about 10% where he has a couple
of rd**3.
OK? Bootstrapped and tested on i686-linux-gnu with no regressions.
Thanks,
Andrew Pinski
ChangeLog:
* trans-decl.c (gfc_build_intrinsic_function_decls): Mark the
pow functions as constant functions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: powconst.diff.txt
Type: text/x-patch
Size: 1094 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20061126/e1a7f870/attachment.bin>
More information about the Fortran
mailing list