diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-05 16:13:46 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-05 16:13:46 +0000 |
commit | 09eadb1e1bd61b6e11b1dd4f74ffdc934302a3e1 (patch) | |
tree | 54226ad3bfaa27e1f18cff2aab9adcf8c3740c38 | |
parent | 9e1bbe7d5fd3946fc806ef915dc63e02b3f5e291 (diff) | |
download | gcc-09eadb1e1bd61b6e11b1dd4f74ffdc934302a3e1.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33707 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/bb-reorder.c | 2 | ||||
-rw-r--r-- | gcc/predict.c | 13 |
3 files changed, 7 insertions, 14 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b4ef3843884..700601770a1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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 diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index 83c2845cc83..c0c808a7636 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -478,7 +478,7 @@ make_reorder_chain (bb) else probability = 0; - if (probability >= REG_BR_PROB_BASE / 2) + if (probability > REG_BR_PROB_BASE / 2) e = bb->succ->succ_next; } diff --git a/gcc/predict.c b/gcc/predict.c index 148d46bb1e6..b957e5f6050 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; |