predict.c (maybe_hot_count_p, [...]): When profile is present, use only counts; when...
authorJan Hubicka <jh@suse.cz>
Mon, 1 Sep 2008 16:28:06 +0000 (18:28 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 1 Sep 2008 16:28:06 +0000 (16:28 +0000)
commitba623cedf4b07b3a2c2f3e638fa379bcde55c42e
treeacd38c7a826f584bcddf0792b749cd9537cd440f
parent6a3799eb0065d62b04315aa2a9808bce71dab54b
predict.c (maybe_hot_count_p, [...]): When profile is present, use only counts; when guessed use only frequencies.

* predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
present, use only counts; when guessed use only frequencies.
(estimate_bb_frequencies): Use function_frequency.
* profile.c (compute_branch_probabilities): Exit early when
profile reading failed. Set profile_status.
(branch_prob): Do not set profile_status.

From-SVN: r139868
gcc/ChangeLog
gcc/predict.c
gcc/profile.c