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
This commit is contained in:
Martin Liska 2016-06-15 17:05:34 +02:00 committed by Martin Liska
parent cf5d08abc2
commit 75dc52c674
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2016-06-15 Martin Liska <mliska@suse.cz>
* predict.c (tree_predict_by_opcode): Call predict_edge_def
instead of predict_edge w/o a probability.
2016-06-15 Alan Hayward <alan.hayward@arm.com>
PR tree-optimization/71439

View File

@ -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.