re PR tree-optimization/83081 ([arm] gcc.dg/pr80218.c fails since r254888)
authorJakub Jelinek <jakub@redhat.com>
Mon, 22 Jan 2018 22:59:33 +0000 (23:59 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 22 Jan 2018 22:59:33 +0000 (23:59 +0100)
commitf5c517f03c53189f5a3381cda85219303480e090
treeec53e921f56d5c6c55a4eb908681b7412e7ba5e5
parentc3b56023072707b09634953e4c4021e604896f2f
re PR tree-optimization/83081 ([arm] gcc.dg/pr80218.c fails since r254888)

PR tree-optimization/83081
* profile-count.h (profile_probability::split): New method.
* dojump.c (do_jump_1) <case TRUTH_ANDIF_EXPR, case TRUTH_ORIF_EXPR>:
Use profile_probability::split.
(do_compare_rtx_and_jump): Fix adjustment of probabilities
when splitting a single conditional jump into 2.

* gcc.dg/predict-8.c: Adjust expected probability.

From-SVN: r256966
gcc/ChangeLog
gcc/dojump.c
gcc/profile-count.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/predict-8.c