From: bernds Date: Sat, 28 Oct 2000 19:42:48 +0000 (+0000) Subject: Use dynamic branch prediction hint in more cases. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d676f1151c4b90fb416ba9d8ad532ba9f8b9ba6e;p=thirdparty%2Fgcc.git Use dynamic branch prediction hint in more cases. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37105 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 656551cf9239..e3d1ec71dfb1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index 6790d3f3ab4b..47b9902c5d83 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -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";