Commit 75dc52c6 by Martin Liska Committed by Martin Liska

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
parent cf5d08ab
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
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment