* predict.c (predicted_by_loop_heuristics_p): New function.
commitd07b2b6fa2d4cd04f333690897db09baa3c90beb
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Jun 2016 16:43:19 +0000 (5 16:43 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Jun 2016 16:43:19 +0000 (5 16:43 +0000)
treef0969b97cc1c4b6c49e7a43b1e102512bbef6698
parent2bc8182ce5851debd8b2583fe7432964f5f606f7
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237103 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/predict.c
gcc/predict.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/predict-9.c