aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.def
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2001-12-15 14:14:06 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2001-12-15 13:14:06 +0000
commitdcfcd4365856e8cbec94fafb5766caa899d6a041 (patch)
tree4fbe0055af661ce9f7cd4145d550705fa592e5e6 /gcc/predict.def
parent275b60d6d894519cc11ee3cd4f8ad0ba6f92b0d3 (diff)
downloadgcc-dcfcd4365856e8cbec94fafb5766caa899d6a041.zip
gcc-dcfcd4365856e8cbec94fafb5766caa899d6a041.tar.gz
gcc-dcfcd4365856e8cbec94fafb5766caa899d6a041.tar.bz2
predict.def (PRED_NORETURN, [...]): Make probabilities match reality.
* predict.def (PRED_NORETURN, PRED_OPCODE_POSITIVE, PRED_OPCODE_NONEQUAL, PRED_ERROR_RETURN): Make probabilities match reality. From-SVN: r48041
Diffstat (limited to 'gcc/predict.def')
-rw-r--r--gcc/predict.def10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/predict.def b/gcc/predict.def
index cc6831d..1201625 100644
--- a/gcc/predict.def
+++ b/gcc/predict.def
@@ -64,7 +64,7 @@ DEF_PREDICTOR (PRED_BUILTIN_EXPECT, "__builtin_expect", PROB_VERY_LIKELY,
PRED_FLAG_FIRST_MATCH)
/* Branch to basic block containing call marked by noreturn attribute. */
-DEF_PREDICTOR (PRED_NORETURN, "noreturn call", PROB_ALWAYS,
+DEF_PREDICTOR (PRED_NORETURN, "noreturn call", HITRATE (99),
PRED_FLAG_FIRST_MATCH)
/* Loopback edge is taken. */
@@ -86,15 +86,15 @@ DEF_PREDICTOR (PRED_LOOP_PRECONDITIONING, "loop preconditioning", PROB_VERY_LIKE
DEF_PREDICTOR (PRED_LOOP_HEADER, "loop header", HITRATE (64), 0)
/* Pointers are usually not NULL. */
-DEF_PREDICTOR (PRED_POINTER, "pointer", HITRATE (83), 0)
+DEF_PREDICTOR (PRED_POINTER, "pointer", HITRATE (81), 0)
/* NE is probable, EQ not etc... */
-DEF_PREDICTOR (PRED_OPCODE_POSITIVE, "opcode values positive", HITRATE (78), 0)
-DEF_PREDICTOR (PRED_OPCODE_NONEQUAL, "opcode values nonequal", HITRATE (70), 0)
+DEF_PREDICTOR (PRED_OPCODE_POSITIVE, "opcode values positive", HITRATE (79), 0)
+DEF_PREDICTOR (PRED_OPCODE_NONEQUAL, "opcode values nonequal", HITRATE (71), 0)
DEF_PREDICTOR (PRED_FPOPCODE, "fp_opcode", HITRATE (90), 0)
/* Branch guarding call is probably taken. */
DEF_PREDICTOR (PRED_CALL, "call", HITRATE (70), 0)
/* Branch causing function to terminate is probably not taken. */
-DEF_PREDICTOR (PRED_ERROR_RETURN, "error return", PROB_LIKELY, 0)
+DEF_PREDICTOR (PRED_ERROR_RETURN, "error return", HITRATE (52), 0)