[patch, fortran] PR 57071, some power optimizations
Thomas Koenig
tkoenig@netcologne.de
Sun Apr 28 08:32:00 GMT 2013
Hello world,
the attached patch does some optimization on
power using ishft and iand, as discussed in the PR.
I have left out handling real numbers, that should be left
to the middle-end (PR 57073).
Regression-tested. OK for trunk?
Thomas
2013-04-28 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/57071
* frontend-passes (optimize_power): New function.
(optimize_op): Use it.
2013-04-28 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/57071
* gfortran.dg/power_3.f90: New test.
* gfortran.dg/power_4.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p3.diff
Type: text/x-patch
Size: 2008 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130428/ecae87a5/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: power_3.f90
Type: text/x-fortran
Size: 942 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130428/ecae87a5/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: power_4.f90
Type: text/x-fortran
Size: 698 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130428/ecae87a5/attachment-0002.bin>
More information about the Fortran
mailing list