predict.c (determine_unlikely_bbs): Forward declare...
authorJan Hubicka <jh@suse.cz>
Wed, 28 Nov 2018 20:48:53 +0000 (21:48 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 28 Nov 2018 20:48:53 +0000 (20:48 +0000)
commit410902c31caa82cf414f020b5db51ddc20159f20
tree25f6fe6b41b104035d34d83de12cc84a6419e7cd
parentad42aa96b6ca0695dce4925d9655938fc1900edf
predict.c (determine_unlikely_bbs): Forward declare...

* predict.c (determine_unlikely_bbs): Forward declare; also determine
edges that are always known to be taken because it is only likely
edge out of given BB.
(tree_estimate_probability): Call before profile guessing to get bit
of extra precision.

* gcc.dg/predict-13.c: Update template.
* gcc.dg/predict-13b.c: New testcase.
* gcc.dg/predict-22.c: New testcase.
* gcc.dg/tree-ssa/ipa-split-4.c: Change abort to other function to
get sane profile.

From-SVN: r266587
gcc/ChangeLog
gcc/predict.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/predict-13.c
gcc/testsuite/gcc.dg/predict-13b.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/predict-22.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ipa-split-4.c