* predict.c (maybe_hot_bb_p): Do not check profile status.
commitf08c22c4f3d18566eb58deff4f3141381c7e7bf9
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Jun 2017 13:16:44 +0000 (8 13:16 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Jun 2017 13:16:44 +0000 (8 13:16 +0000)
tree70e06d0d036ff5e480b61732710afb7406205bfd
parent70d4824930788c1528f77668df2d965a62eda18d
* predict.c (maybe_hot_bb_p): Do not check profile status.
(maybe_hot_edge_p): Likewise.
(probably_never_executed): Check for zero counts even if profile
is not read.
(unlikely_executed_edge_p): New function.
(unlikely_executed_stmt_p): New function.
(unlikely_executed_bb_p): New function.
(set_even_probabilities): Use unlikely predicates.
(combine_predictions_for_bb): Likewise.
(predict_paths_for_bb): Likewise.
(predict_paths_leading_to_edge): Likewise.
(determine_unlikely_bbs): New function.
(estimate_bb_frequencies): Use it.
(compute_function_frequency): Use zero counts even if profile is
not read.
* profile-count.h: Fix typo.

* g++.dg/tree-ssa/counts-1.C: New testcase.
* gcc.dg/tree-ssa/counts-1.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249013 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/predict.c
gcc/profile-count.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/counts-1.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/counts-1.c [new file with mode: 0644]