summaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2008-12-09 17:04:26 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2008-12-09 17:04:26 +0000
commit3aab97cb8a4d6c85442165e6c71c30c80e7e2511 (patch)
tree4c7423dabbaca15225550f48279f4381c979fca1 /gcc/predict.c
parent4206ff8ccf0d732609eeed39c7eacb7417803480 (diff)
downloadgcc-3aab97cb8a4d6c85442165e6c71c30c80e7e2511.tar.gz
* predict.c (estimate_bb_frequencies): Fix test if profile is present.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142600 138bc75d-0d04-0410-961f-82ee72b054a4
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 73dbcbdc4ce..22e71ceab8d 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;