aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.def
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-07-31 13:16:00 +0200
committerMartin Liska <marxin@gcc.gnu.org>2017-07-31 11:16:00 +0000
commit7fef86d3486c9f4208a111a41a2cc66b7328b6d9 (patch)
tree12d92f7ad89fe26c757222ae443640e4eaeeaa00 /gcc/predict.def
parent2ec580be156c39a87ea39c2f475565bd36d82dcc (diff)
downloadgcc-7fef86d3486c9f4208a111a41a2cc66b7328b6d9.zip
gcc-7fef86d3486c9f4208a111a41a2cc66b7328b6d9.tar.gz
gcc-7fef86d3486c9f4208a111a41a2cc66b7328b6d9.tar.bz2
Recover GOTO predictor.
2017-07-31 Jan Hubicka <hubicka@ucw.cz> Martin Liska <mliska@suse.cz> * c-typeck.c (c_finish_goto_label): Build gimple predict stament. 2017-07-31 Jan Hubicka <hubicka@ucw.cz> Martin Liska <mliska@suse.cz> * predict.def: Remove old comment and adjust probability. * gimplify.c (should_warn_for_implicit_fallthrough): Ignore PREDICT statements. 2017-07-31 Jan Hubicka <hubicka@ucw.cz> Martin Liska <mliska@suse.cz> * gcc.dg/predict-15.c: New test. * gcc.dg/tree-ssa/vrp24.c: Update scanned pattern. 2017-07-31 Jan Hubicka <hubicka@ucw.cz> Martin Liska <mliska@suse.cz> * 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 <mliska@suse.cz> From-SVN: r250737
Diffstat (limited to 'gcc/predict.def')
-rw-r--r--gcc/predict.def5
1 files changed, 2 insertions, 3 deletions
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)