===================================================================
@@ -676,7 +676,14 @@ find_many_sub_basic_blocks (sbitmap bloc
else
/* If nothing changed, there is no need to create new BBs. */
if (EDGE_COUNT (bb->succs) == n_succs[bb->index])
- continue;
+ {
+ /* In rare occassions RTL expansion might have mistakely assigned
+ a probabilities different from what is in CFG. This happens
+ when we try to split branch to two but optimize out the
+ second branch during the way. See PR81030. */
+ update_br_prob_note (bb);
+ continue;
+ }
compute_outgoing_frequencies (bb);
}