* predict.c (estimate_bb_frequencies): Fix test if profile is present.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Dec 2008 17:04:26 +0000 (17:04 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Dec 2008 17:04:26 +0000 (17:04 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142600 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/predict.c

index 9c9ad1f..075863b 100644 (file)
@@ -1,3 +1,7 @@
+2008-12-09  Jan Hubicka  <jh@suse.cz>
+
+       * predict.c (estimate_bb_frequencies): Fix test if profile is present.
+
 2008-12-09  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/35468
index 73dbcbd..22e71ce 100644 (file)
@@ -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;