From: Martin Liska Date: Wed, 15 Jun 2016 15:05:34 +0000 (+0200) Subject: Fix obvious typo in predict.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75dc52c674f0d70ae8cca6b0381270b3efd3a0fb;p=gcc.git Fix obvious typo in predict.c * predict.c (tree_predict_by_opcode): Call predict_edge_def instead of predict_edge w/o a probability. From-SVN: r237481 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 568d385a10f..01d50905dff 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-06-15 Martin Liska + + * predict.c (tree_predict_by_opcode): Call predict_edge_def + instead of predict_edge w/o a probability. + 2016-06-15 Alan Hayward PR tree-optimization/71439 diff --git a/gcc/predict.c b/gcc/predict.c index 7d55ff7c71c..bafcc96fbc5 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -2192,8 +2192,8 @@ tree_predict_by_opcode (basic_block bb) predict_edge (then_edge, PRED_BUILTIN_EXPECT, HITRATE (percent)); } else - predict_edge (then_edge, predictor, - integer_zerop (val) ? NOT_TAKEN : TAKEN); + predict_edge_def (then_edge, predictor, + integer_zerop (val) ? NOT_TAKEN : TAKEN); } /* Try "pointer heuristic." A comparison ptr == 0 is predicted as false.