re PR tree-optimization/81462 (ICE in estimate_bb_frequencies at gcc/predict.c:3546)
authorJan Hubicka <hubicka@ucw.cz>
Tue, 18 Jul 2017 13:49:30 +0000 (15:49 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 18 Jul 2017 13:49:30 +0000 (13:49 +0000)
commit33e9feb53082ee79d5f4321bcedf025f1bbd691d
tree57c3c850bc4efb6a3e987bff4d868699cf4fb069
parentff22eb1256b05c1d0e0cf4b4b3114808bbf29457
re PR tree-optimization/81462 (ICE in estimate_bb_frequencies at gcc/predict.c:3546)

PR middle-end/81462
* predict.c (set_even_probabilities): Cleanup; do not affect
probabilities that are already known.
(combine_predictions_for_bb): Call even when count is set.

* g++.dg/torture/pr81462.C: New testcase.

From-SVN: r250310
gcc/ChangeLog
gcc/predict.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr81462.C [new file with mode: 0644]