re PR fortran/79930 (Potentially Missed Optimisation for MATMUL / DOT_PRODUCT)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 8 May 2017 18:22:44 +0000 (18:22 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 8 May 2017 18:22:44 +0000 (18:22 +0000)
commit0f6ed1211d4e6759a0c35bc8d05fb07e5eab7bea
tree0590178a17fc64dd8917d650ffd6af7caef96161
parent507e429b2fe28c21889d166817a35496777d19ba
re PR fortran/79930 (Potentially Missed Optimisation for MATMUL / DOT_PRODUCT)

2017-05-08  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/79930
* frontend-passes.c (matmul_to_var_expr): New function,
add prototype.
(matmul_to_var_code):  Likewise.
(optimize_namespace):  Use them from gfc_code_walker.

2017-05-08  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/79930
* gfortran.dg/inline_transpose_1.f90:  Add
-finline-matmul-limit=0 to options.
* gfortran.dg/matmul_5.f90:  Likewise.
* gfortran.dg/vect/vect-8.f90: Likewise.
* gfortran.dg/inline_matmul_14.f90:  New test.
* gfortran.dg/inline_matmul_15.f90:  New test.

From-SVN: r247755
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/inline_matmul_14.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/inline_matmul_15.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/inline_transpose_1.f90
gcc/testsuite/gfortran.dg/matmul_5.f90
gcc/testsuite/gfortran.dg/vect/vect-8.f90