aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>2000-05-05 16:13:46 +0000
committerJeff Law <law@gcc.gnu.org>2000-05-05 10:13:46 -0600
commitcde9b87dfbe512818bd2aafa35a5004d36370a8e (patch)
tree54226ad3bfaa27e1f18cff2aab9adcf8c3740c38 /gcc/predict.c
parent327f248083cb6869adb99e7ca2bbab62c71d090c (diff)
downloadgcc-cde9b87dfbe512818bd2aafa35a5004d36370a8e.zip
gcc-cde9b87dfbe512818bd2aafa35a5004d36370a8e.tar.gz
gcc-cde9b87dfbe512818bd2aafa35a5004d36370a8e.tar.bz2
predict.c: Remove May 4 change.
* 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
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index 148d46b..b957e5f6 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -202,19 +202,6 @@ estimate_probability (loops_info)
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;