Use dynamic branch prediction hint in more cases.
authorBernd Schmidt <bernds@redhat.co.uk>
Sat, 28 Oct 2000 19:42:48 +0000 (19:42 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Sat, 28 Oct 2000 19:42:48 +0000 (19:42 +0000)
From-SVN: r37105

gcc/ChangeLog
gcc/config/ia64/ia64.c

index 656551cf923960c4c7c3c1a10dcb0ec0573e802c..e3d1ec71dfb1bde2fa8d420db65ceb8f67361d57 100644 (file)
@@ -8,6 +8,8 @@
 
        * config/ia64/ia64.h (RTX_COSTS): A few more entries, and a more
        accurate value for MULT.
+       * config/ia64/ia64.c (ia64_print_operand): Require probability to be
+       2% or > 98% before using static branch prediction bits.
 
 2000-10-28  Neil Booth  <neilb@earthling.net>
 
index 6790d3f3ab4bb00bfbf3c76472c72b1f07a3f921..47b9902c5d8327a17ed7133e5134840227297757 100644 (file)
@@ -3311,11 +3311,11 @@ ia64_print_operand (file, x, code)
            int pred_val = INTVAL (XEXP (x, 0));
 
            /* Guess top and bottom 10% statically predicted.  */
-           if (pred_val < REG_BR_PROB_BASE / 10)
+           if (pred_val < REG_BR_PROB_BASE / 50)
              which = ".spnt";
            else if (pred_val < REG_BR_PROB_BASE / 2)
              which = ".dpnt";
-           else if (pred_val < REG_BR_PROB_BASE * 9 / 10)
+           else if (pred_val < REG_BR_PROB_BASE / 100 * 98)
              which = ".dptk";
            else
              which = ".sptk";