[patch, fortran] Set default inline matmul limit to 30

Thomas Koenig tkoenig@netcologne.de
Sat Feb 25 13:29:00 GMT 2017


Hello world,

there still was one piece missing for the new matmul library
version.  To make sure that users (usually) benefit, we need
to call the library by default up from a certain limit.
The attached patch does that, with a limit of 30, which seems
to be reasonable given a few benchmarks.

Some test cases had to be changed to scan the optimized tree
instead of the original because the version still had some
if (0) statement in them.

Regeression-tested. OK for trunk?

Regards

	Thomas

2017-02-25  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/51119
         * options.c (gfc_post_options):  Set default limit for matmul
         inlining to 30.
         * invoke.texi:  Document change.

2017-02-25  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/51119
         * gfortran.dg/inline_matmul_1.f90:  Scan optimized dump instead
         of original.
         * gfortran.dg/inline_matmul_11.f90:  Likewise.
         * gfortran.dg/inline_matmul_9.f90:  Likewise.
         * gfortran.dg/matmul_13.f90:  New test.
         * gfortran.dg/matmul_14.f90:  New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1-flag.diff
Type: text/x-patch
Size: 3746 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20170225/0e652e1f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: matmul_13.f90
Type: text/x-fortran
Size: 385 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20170225/0e652e1f/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: matmul_14.f90
Type: text/x-fortran
Size: 385 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20170225/0e652e1f/attachment-0002.bin>


More information about the Fortran mailing list