re PR fortran/31067 (MINLOC should sometimes be inlined (gas_dyn is sooooo sloooow))
authorJakub Jelinek <jakub@redhat.com>
Thu, 28 Jul 2011 20:56:50 +0000 (22:56 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 28 Jul 2011 20:56:50 +0000 (22:56 +0200)
commitd266391244dae81f7f1693d9927df4c6c1bc146b
tree84fa0235e700ee8b97d41dd0db663877ac961ad1
parent5fce91262c0d0ecedb53090544f227106bf3cbf4
re PR fortran/31067 (MINLOC should sometimes be inlined (gas_dyn is sooooo sloooow))

PR fortran/31067
* frontend-passes.c (optimize_minmaxloc): New function.
(optimize_expr): Call it.

* gfortran.dg/maxloc_2.f90: New test.
* gfortran.dg/maxloc_3.f90: New test.
* gfortran.dg/minloc_1.f90: New test.
* gfortran.dg/minloc_2.f90: New test.
* gfortran.dg/minloc_3.f90: New test.
* gfortran.dg/minmaxloc_7.f90: New test.

From-SVN: r176897
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/maxloc_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/maxloc_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/minloc_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/minloc_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/minloc_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/minmaxloc_7.f90 [new file with mode: 0644]