From: Jan Hubicka Date: Fri, 15 Jul 2005 23:26:50 +0000 (+0200) Subject: profile.c (rest_of_handle_branch_prob): Fix handling of estimation after RTL profiling. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3258272f5f9e9849d4fd27ca251925f78bcf429e;p=gcc.git profile.c (rest_of_handle_branch_prob): Fix handling of estimation after RTL profiling. * profile.c (rest_of_handle_branch_prob): Fix handling of estimation after RTL profiling. From-SVN: r102069 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bbb9248bb5b..25cc46d351d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-07-16 Jan Hubicka + + * profile.c (rest_of_handle_branch_prob): Fix handling of estimation + after RTL profiling. + 2005-07-11 Andrew Pinski PR middle-end/22398 diff --git a/gcc/profile.c b/gcc/profile.c index 054f0771f47..1e0c3b87d93 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -1381,7 +1381,9 @@ rest_of_handle_branch_prob (void) flow_loops_dump (&loops, dump_file, NULL, 0); /* Estimate using heuristics if no profiling info is available. */ - if (flag_guess_branch_prob && profile_status == PROFILE_ABSENT) + if (flag_guess_branch_prob + && (profile_status == PROFILE_ABSENT + || (profile_status == PROFILE_READ && !flag_tree_based_profiling))) estimate_probability (&loops); flow_loops_free (&loops);