predict.c: Include ipa-utils.h
authorJan Hubicka <hubicka@ucw.cz>
Sat, 25 Jun 2016 11:56:52 +0000 (13:56 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 25 Jun 2016 11:56:52 +0000 (11:56 +0000)
commit888ed1a39a46d55a7c1f2357d31eb4b59e4dc721
tree412e6f58c87e87e9651ee2208731ac15e90260c8
parent1527dee9df41b5130f0d767f91bc89f9c990535c
predict.c: Include ipa-utils.h

* predict.c: Include ipa-utils.h
(tree_bb_level_prediction): Predict recursive calls.
(tree_estimate_probability_bb): Skip inexpensive calls for call
predictor.
* predict.def (PRED_RECURSIVE_CALL): New.

* gcc.dg/predict-10.c: New test.

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