From bb033fd8060e36e8bafdebec388e5fa91d073d61 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 20 Sep 2004 20:43:30 +0200 Subject: predict.c (return_prediction): New function. * predict.c (return_prediction): New function. (apply_return_prediction): Likewise. (tree_bb_level_predictions): Likewise. (tree_estimate_probability): Add noreturn exit edges; call bb_level_predictions; fix logic of return heuristics. (predict_paths_leading_to): Rescuesce from old CVS version of process_note_prediction function. * predict.def (PRED_TREE_EARLY_RETURN): New predictor. From-SVN: r87768 --- gcc/predict.def | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/predict.def') diff --git a/gcc/predict.def b/gcc/predict.def index 4b57163..f469b34 100644 --- a/gcc/predict.def +++ b/gcc/predict.def @@ -104,6 +104,7 @@ DEF_PREDICTOR (PRED_CALL, "call", HITRATE (70), 0) /* Branch causing function to terminate is probably not taken. */ DEF_PREDICTOR (PRED_EARLY_RETURN, "early return", HITRATE (67), 0) +DEF_PREDICTOR (PRED_TREE_EARLY_RETURN, "early return (on trees)", HITRATE (67), 0) /* Branch containing goto is probably not taken. */ DEF_PREDICTOR (PRED_GOTO, "goto", HITRATE (70), 0) -- cgit v1.1