diff options
author | Jan Hubicka <jh@suse.cz> | 2005-07-16 01:26:50 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2005-07-15 23:26:50 +0000 |
commit | 3258272f5f9e9849d4fd27ca251925f78bcf429e (patch) | |
tree | 5cdc05558c66c61fb008fa241248ed71433738ba /gcc/profile.c | |
parent | 01c0a9fa284b7fc10d09b4dca5f3e71f845a5ca1 (diff) | |
download | gcc-3258272f5f9e9849d4fd27ca251925f78bcf429e.zip gcc-3258272f5f9e9849d4fd27ca251925f78bcf429e.tar.gz gcc-3258272f5f9e9849d4fd27ca251925f78bcf429e.tar.bz2 |
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
Diffstat (limited to 'gcc/profile.c')
-rw-r--r-- | gcc/profile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/profile.c b/gcc/profile.c index 054f077..1e0c3b8 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); |