diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5ec9a6e1ad4..3facfdb125e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-08-06 Jan Hubicka + + * predict.c (maybe_hot_frequency_p): When profile is absent, all + frequencies might be hot. + 2008-08-06 Andreas Krebbel * reload.c (find_reloads): Force constants into literal pool diff --git a/gcc/predict.c b/gcc/predict.c index 853c0c6f70d..e90b95c0683 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -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;