Introduce fortran loop preheader
authorMartin Liska <mliska@suse.cz>
Thu, 16 Jun 2016 16:05:25 +0000 (18:05 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 16 Jun 2016 16:05:25 +0000 (16:05 +0000)
commit68fa96d6257baa572dad70a23259670be1542efb
tree4639894bc52d12b93835464e86fc462d737e390f
parent8b051d2e6c9a816aff781802b311dbdb77ac7be0
Introduce fortran loop preheader

* predict.def: Add fortran loop preheader predictor.
* gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
fold IFN_BUILTIN_EXPECT with a known constant argument.
* trans-stmt.c (gfc_trans_simple_do): Predict the edge.
* gfortran.dg/predict-1.f90: New test.

From-SVN: r237533
gcc/ChangeLog
gcc/fortran/ChangeLog
gcc/fortran/trans-stmt.c
gcc/gimple-fold.c
gcc/predict.def
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/predict-1.f90 [new file with mode: 0644]