predict.c (predicted_by_loop_heuristics_p): New function.
authorJan Hubicka <hubicka@ucw.cz>
Sun, 5 Jun 2016 16:43:19 +0000 (18:43 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 5 Jun 2016 16:43:19 +0000 (16:43 +0000)
commit429d2750bfc033470f0c7864379d2e63a0b0424a
treef0969b97cc1c4b6c49e7a43b1e102512bbef6698
parent46f1f3c1c267215d8951674d0d62a5027b870163
predict.c (predicted_by_loop_heuristics_p): New function.

* predict.c (predicted_by_loop_heuristics_p): New function.
(predict_iv_comparison): Use it.
(predict_loops): Walk from innermost loops; do not predict edges
leaving multiple loops multiple times; implement
PRED_LOOP_ITERATIONS_MAX heuristics.
* predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
* gcc.dg/predict-9.c: Update template.

From-SVN: r237103
gcc/ChangeLog
gcc/predict.c
gcc/predict.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/predict-9.c