From: Alan Modra Date: Mon, 7 Feb 2005 21:18:31 +0000 (+0000) Subject: re PR target/19803 (__builtin_expect does not modify branch prediction for power4/5) X-Git-Tag: releases/gcc-3.4.4~246 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=222d6d85d9e066ae178107befeb25c72c1dd1f0e;p=thirdparty%2Fgcc.git re PR target/19803 (__builtin_expect does not modify branch prediction for power4/5) PR target/19803 * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%. From-SVN: r94716 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a152fa687b96..eb394b821812 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-02-08 Alan Modra + + PR target/19803 + * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%. + 2005-02-07 Ralf Corsepius * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200. diff --git a/gcc/predict.c b/gcc/predict.c index f2b4068df1ac..9d885fc4fc69 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -1,5 +1,6 @@ /* Branch prediction routines for the GNU compiler. - Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 + Free Software Foundation, Inc. This file is part of GCC. @@ -60,7 +61,7 @@ static sreal real_zero, real_one, real_almost_one, real_br_prob_base, real_inv_br_prob_base, real_one_half, real_bb_freq_max; /* Random guesstimation given names. */ -#define PROB_VERY_UNLIKELY (REG_BR_PROB_BASE / 10 - 1) +#define PROB_VERY_UNLIKELY (REG_BR_PROB_BASE / 100 - 1) #define PROB_EVEN (REG_BR_PROB_BASE / 2) #define PROB_VERY_LIKELY (REG_BR_PROB_BASE - PROB_VERY_UNLIKELY) #define PROB_ALWAYS (REG_BR_PROB_BASE)