PR tree-optimization/83081
commit638bea0416015565a4a9cc72c22ec5fd0083d2f2
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Jan 2018 22:59:33 +0000 (22 22:59 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Jan 2018 22:59:33 +0000 (22 22:59 +0000)
treeec53e921f56d5c6c55a4eb908681b7412e7ba5e5
parent0488e949089e1cc88587dfc605d91758902b5e9f
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256966 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dojump.c
gcc/profile-count.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/predict-8.c