From c3702ff90aa3f2b3e318e7e83a5df5e9614cf074 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 6 Aug 2008 09:50:52 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/predict.c | 2 ++ 2 files changed, 7 insertions(+) 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;