From d8c70625ae072fce9cd64ee06c8a3b91bc554057 Mon Sep 17 00:00:00 2001 From: hubicka Date: Thu, 23 Sep 2004 00:50:37 +0000 Subject: * cfgexpand.c (add_reg_br_prob_note): New function. (expand_gimple_cond_expr): Use it. (tree_expand_cfg): No longer kill the profile. * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency only if it is present. * passes.c (rest_of_handle_loop_optimize): Kill the profile. * predict.c (combine_predictions_for_insn): Set the probabilities based on REG_BR_PROB note if present. * predict.c (branch_prob): Profile is read only with flag_branch_probabilities. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87910 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/profile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/profile.c') diff --git a/gcc/profile.c b/gcc/profile.c index 77c5d03b15a..b83e6c3e5d9 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -1104,7 +1104,8 @@ branch_prob (void) } free_edge_list (el); - profile_status = PROFILE_READ; + if (flag_branch_probabilities) + profile_status = PROFILE_READ; } /* Union find algorithm implementation for the basic blocks using -- cgit v1.2.1