Fix set of even probabilities (PR middle-end/89737).
authorMartin Liska <mliska@suse.cz>
Tue, 19 Mar 2019 17:08:28 +0000 (18:08 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 19 Mar 2019 17:08:28 +0000 (17:08 +0000)
commit2214085affb80feb19e79882ee769e28c2a85a5a
tree03ea8222a540ec5066ff7f38286efd4e43292212
parente8926ce09f3ef0795b87dc922f431157e6916748
Fix set of even probabilities (PR middle-end/89737).

2019-03-19  Martin Liska  <mliska@suse.cz>

PR middle-end/89737
* predict.c (combine_predictions_for_bb): Empty likely_edges and
unlikely_edges if there's an edge that belongs to both these sets.
2019-03-19  Martin Liska  <mliska@suse.cz>

PR middle-end/89737
* gcc.dg/pr89737.c: New test.

From-SVN: r269804
gcc/ChangeLog
gcc/predict.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr89737.c [new file with mode: 0644]