diff options
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index 7eaee34d2eb..cc314ecad74 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -438,6 +438,15 @@ combine_predictions_for_insn (rtx insn, basic_block bb) = REG_BR_PROB_BASE - combined_probability; } } + else if (bb->succ->succ_next) + { + int prob = INTVAL (XEXP (prob_note, 0)); + + BRANCH_EDGE (bb)->probability = prob; + FALLTHRU_EDGE (bb)->probability = REG_BR_PROB_BASE - prob; + } + else + bb->succ->probability = REG_BR_PROB_BASE; } /* Combine predictions into single probability and store them into CFG. |