From: Jan Hubicka Date: Wed, 6 Aug 2008 07:50:52 +0000 (+0200) Subject: predict.c (maybe_hot_frequency_p): When profile is absent, all frequencies might... X-Git-Tag: releases/gcc-4.4.0~3318 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3702ff90aa3f2b3e318e7e83a5df5e9614cf074;p=thirdparty%2Fgcc.git predict.c (maybe_hot_frequency_p): When profile is absent, all frequencies might be hot. * predict.c (maybe_hot_frequency_p): When profile is absent, all frequencies might be hot. From-SVN: r138764 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5ec9a6e1ad40..3facfdb125e2 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 853c0c6f70d2..e90b95c06833 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;