]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
predict.c (maybe_hot_frequency_p): When profile is absent, all frequencies might...
authorJan Hubicka <jh@suse.cz>
Wed, 6 Aug 2008 07:50:52 +0000 (09:50 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 6 Aug 2008 07:50:52 +0000 (07:50 +0000)
* predict.c (maybe_hot_frequency_p): When profile is absent, all
frequencies might be hot.

From-SVN: r138764

gcc/ChangeLog
gcc/predict.c

index 5ec9a6e1ad40a0ac43fc5f39075362d93032307e..3facfdb125e234bb6b60243756dd2b20db86952f 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-06  Jan Hubicka  <jh@suse.cz>
+
+       * predict.c (maybe_hot_frequency_p): When profile is absent, all
+       frequencies might be hot.
+
 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
 
        * reload.c (find_reloads): Force constants into literal pool
index 853c0c6f70d2e7402d62bee6eea6885a34bcaffe..e90b95c068332f0ac39cb8618e60cbf420001f8b 100644 (file)
@@ -118,6 +118,8 @@ maybe_hot_frequency_p (int freq)
       if (cfun->function_frequency == FUNCTION_FREQUENCY_HOT)
         return true;
     }
+  if (profile_status == PROFILE_ABSENT)
+    return true;
   if (freq < BB_FREQ_MAX / PARAM_VALUE (HOT_BB_FREQUENCY_FRACTION))
     return false;
   return true;