This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Update predict.def for the fixes
- From: Jan Hubicka <jh at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 28 Feb 2007 11:55:24 +0100
- Subject: Update predict.def for the fixes
Hi,
this patch updates the outcomes of fixed heuristic based on today
results. They are pretty much as expected, except for the early return
heuristic still being less reliable than the former variant, but it was
never really good, so I guess it is OK as it is.
Honza
2007-02-28 Jan Hubicka <jh@suse.cz>
* predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
PRED_NEGATIVE_RETURN): Update outcomes.
Index: predict.def
===================================================================
--- predict.def (revision 122403)
+++ predict.def (working copy)
@@ -97,16 +97,16 @@ DEF_PREDICTOR (PRED_TREE_FPOPCODE, "fp_o
DEF_PREDICTOR (PRED_CALL, "call", HITRATE (69), 0)
/* Branch causing function to terminate is probably not taken. */
-DEF_PREDICTOR (PRED_TREE_EARLY_RETURN, "early return (on trees)", HITRATE (45), 0)
+DEF_PREDICTOR (PRED_TREE_EARLY_RETURN, "early return (on trees)", HITRATE (54), 0)
/* Branch containing goto is probably not taken. */
DEF_PREDICTOR (PRED_GOTO, "goto", HITRATE (70), 0)
/* Branch ending with return constant is probably not taken. */
-DEF_PREDICTOR (PRED_CONST_RETURN, "const return", HITRATE (95), 0)
+DEF_PREDICTOR (PRED_CONST_RETURN, "const return", HITRATE (67), 0)
/* Branch ending with return negative constant is probably not taken. */
-DEF_PREDICTOR (PRED_NEGATIVE_RETURN, "negative return", HITRATE (77), 0)
+DEF_PREDICTOR (PRED_NEGATIVE_RETURN, "negative return", HITRATE (96), 0)
/* Branch ending with return; is probably not taken */
DEF_PREDICTOR (PRED_NULL_RETURN, "null return", HITRATE (96), 0)