predict.c (predict_paths_leading_to, [...]): Add in_loop parameter.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 25 Jun 2016 16:52:32 +0000 (18:52 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 25 Jun 2016 16:52:32 +0000 (16:52 +0000)
commit7805417a5d2a9a79a3858b82d60169178f59c6f1
tree1b33d23bbcb416fae09c690f99e78c7b06c92985
parent888ed1a39a46d55a7c1f2357d31eb4b59e4dc721
predict.c (predict_paths_leading_to, [...]): Add in_loop parameter.

* predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
Add in_loop parameter.
(predict_loops): Add loop guard heuristics.
* predict.def (PRED_LOOP_GUARD): New heuristics.

* gcc.dg/predict-11.c: New testcase.
* gfortran.dg/predict-2.f90: New testcase.

From-SVN: r237781
gcc/ChangeLog
gcc/predict.c
gcc/predict.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/predict-11.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/predict-2.f90 [new file with mode: 0644]