From 7fef86d3486c9f4208a111a41a2cc66b7328b6d9 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 31 Jul 2017 13:16:00 +0200 Subject: Recover GOTO predictor. 2017-07-31 Jan Hubicka Martin Liska * c-typeck.c (c_finish_goto_label): Build gimple predict stament. 2017-07-31 Jan Hubicka Martin Liska * predict.def: Remove old comment and adjust probability. * gimplify.c (should_warn_for_implicit_fallthrough): Ignore PREDICT statements. 2017-07-31 Jan Hubicka Martin Liska * gcc.dg/predict-15.c: New test. * gcc.dg/tree-ssa/vrp24.c: Update scanned pattern. 2017-07-31 Jan Hubicka Martin Liska * pt.c (tsubst_copy): Copy PREDICT_EXPR. * semantics.c (finish_goto_stmt): Build gimple predict stament. * constexpr.c (potential_constant_expression_1): Handle PREDICT_EXPR. Co-Authored-By: Martin Liska From-SVN: r250737 --- gcc/predict.def | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gcc/predict.def') diff --git a/gcc/predict.def b/gcc/predict.def index f7b2bf7..326c39a 100644 --- a/gcc/predict.def +++ b/gcc/predict.def @@ -132,9 +132,8 @@ DEF_PREDICTOR (PRED_RECURSIVE_CALL, "recursive call", HITRATE (75), 0) DEF_PREDICTOR (PRED_TREE_EARLY_RETURN, "early return (on trees)", HITRATE (66), 0) -/* Branch containing goto is probably not taken. - FIXME: Currently not used. */ -DEF_PREDICTOR (PRED_GOTO, "goto", HITRATE (70), 0) +/* Branch containing goto is probably not taken. */ +DEF_PREDICTOR (PRED_GOTO, "goto", HITRATE (66), 0) /* Branch ending with return constant is probably not taken. */ DEF_PREDICTOR (PRED_CONST_RETURN, "const return", HITRATE (69), 0) -- cgit v1.1