* predict.c: Remove May 4 change.
* bb-reorder.c (make_reorder_chain): Do not perform block movement
if we have predicted the branch at 50-50 probability.
From-SVN: r33707
+Fri May 5 10:11:41 2000 Jeffrey A Law (law@cygnus.com)
+
+ * predict.c: Remove May 4 change.
+ * bb-reorder.c (make_reorder_chain): Do not perform block movement
+ if we have predicted the branch at 50-50 probability.
+
2000-05-05 Richard Henderson <rth@cygnus.com>
* flow.c (init_propagate_block_info): Fix merge error
else
probability = 0;
- if (probability >= REG_BR_PROB_BASE / 2)
+ if (probability > REG_BR_PROB_BASE / 2)
e = bb->succ->succ_next;
}
break;
}
- /* If one of the blocks already directly follows the current
- block, then predict it as the taken path. This reduces
- random block movement. */
- for (e = BASIC_BLOCK (i)->succ; e; e = e->succ_next)
- if (e->dest->index == i + 1)
- {
- if (e->flags & EDGE_FALLTHRU)
- prob = 0;
- else
- prob = REG_BR_PROB_BASE;
- goto emitnote;
- }
-
/* If we havn't chosen something by now, predict 50-50. */
prob = REG_BR_PROB_BASE / 2;