aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2008-12-09 18:04:26 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2008-12-09 17:04:26 +0000
commit0e7f7d876bdc33ca332dcbc336c22cc04d4e47eb (patch)
tree4c7423dabbaca15225550f48279f4381c979fca1 /gcc/predict.c
parent53873346f17c3931fb9050abb80739a27622dfb3 (diff)
downloadgcc-0e7f7d876bdc33ca332dcbc336c22cc04d4e47eb.zip
gcc-0e7f7d876bdc33ca332dcbc336c22cc04d4e47eb.tar.gz
gcc-0e7f7d876bdc33ca332dcbc336c22cc04d4e47eb.tar.bz2
* predict.c (estimate_bb_frequencies): Fix test if profile is present.
From-SVN: r142600
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index 73dbcbdc..22e71ce 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -2052,7 +2052,7 @@ estimate_bb_frequencies (void)
basic_block bb;
sreal freq_max;
- if (cfun->function_frequency != PROFILE_READ || !counts_to_freqs ())
+ if (profile_status != PROFILE_READ || !counts_to_freqs ())
{
static int real_values_initialized = 0;