Rework cold and hot label attributes in predict.c.
authorMartin Liska <mliska@suse.cz>
Wed, 21 Jun 2017 12:52:14 +0000 (14:52 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 21 Jun 2017 12:52:14 +0000 (12:52 +0000)
commit93c18375823fdd0e384f673f75e39136719135dd
treed25acabcbf72c143c997ccd8e7b212c5930584ad
parente59a1c22fb249388e82b4fd004f33615abe36d2e
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.

From-SVN: r249451
gcc/ChangeLog
gcc/gimplify.c
gcc/predict.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/attr-hotcold-2.c