mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-22 22:01:20 +08:00
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:
parent
cf5d08abc2
commit
75dc52c674
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user