predict-12.c: New testcase.
authorJan Hubicka <hubicka@ucw.cz>
Sun, 26 Jun 2016 20:03:35 +0000 (22:03 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 26 Jun 2016 20:03:35 +0000 (20:03 +0000)
commit9bb86f403f3085d0d9b344127f7603d4559370a5
tree758291fab73082c64f9ab653eec592aa1da221c4
parent445f9a500ddf8fd6673e87b525c8f38cd742af26
predict-12.c: New testcase.

* gcc.dg/predict-12.c: New testcase.

* predict.c: Include gimple-pretty-print.h
(predicted_by_loop_heuristics_p): Check also
PRED_LOOP_EXIT_WITH_RECURSION
(predict_loops): Find self recursive calls and use special purpose
predictors for them; dump log about decisions.
(pass_profile::execute): Dump info about #of iterations.
* predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
(PRED_LOOP_GUARD_WITH_RECURSION): New predictors.

From-SVN: r237791
gcc/ChangeLog
gcc/predict.c
gcc/predict.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/predict-12.c [new file with mode: 0644]