]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/19803 (__builtin_expect does not modify branch prediction for power4/5)
authorAlan Modra <amodra@bigpond.net.au>
Mon, 7 Feb 2005 21:18:31 +0000 (21:18 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Mon, 7 Feb 2005 21:18:31 +0000 (07:48 +1030)
PR target/19803
* predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.

From-SVN: r94716

gcc/ChangeLog
gcc/predict.c

index a152fa687b969defa6094994abacc2971bb60376..eb394b821812f8a39ca5619bd41c2bf94dc24393 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-08  Alan Modra  <amodra@bigpond.net.au>
+
+       PR target/19803
+       * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.
+
 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
 
        * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
index f2b4068df1acbe574506d1c8199b9a4f0c68253e..9d885fc4fc69223ec16caac8848e65e12628eb9a 100644 (file)
@@ -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)