Rework cold and hot label attributes in predict.c.
commit8e31f1f12f40c444849b504869d866619cb6c110
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Jun 2017 12:52:14 +0000 (21 12:52 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Jun 2017 12:52:14 +0000 (21 12:52 +0000)
treed25acabcbf72c143c997ccd8e7b212c5930584ad
parentc65f167e0e8b275f3723742af3f72b41babc3a56
Rework cold and hot label attributes in predict.c.

2017-06-21  Martin Liska  <mliska@suse.cz>

* gimplify.c (gimplify_label_expr): Insert GIMPLE_PREDICT
statements on cold and hot labels.
* predict.c (tree_estimate_probability_bb): Remove the
prediction from this place.
2017-06-21  Martin Liska  <mliska@suse.cz>

* gcc.dg/tree-ssa/attr-hotcold-2.c: Update scanned patterns.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249451 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimplify.c
gcc/predict.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/attr-hotcold-2.c