summaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-06 10:29:11 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-06 10:29:11 +0000
commit7a569e8fccbf1195ba96896ac1a454aed04d09dc (patch)
tree7816c3195d93d33617370339f5268fbfee506f2f /gcc/predict.c
parentfb20d6fadb6929a41e0f2645ba8da6d68c9feff4 (diff)
downloadgcc-7a569e8fccbf1195ba96896ac1a454aed04d09dc.tar.gz
* predict.c (estimate_bb_frequencies): Do not reload the
frequencies from notes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50356 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index 6961a33fb45..f496b38dce0 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -897,20 +897,6 @@ estimate_bb_frequencies (loops)
for (e = BASIC_BLOCK (i)->succ; e; e = e->succ_next)
e->probability = (REG_BR_PROB_BASE + nedges / 2) / nedges;
}
- else
- {
- probability = INTVAL (XEXP (find_reg_note (last_insn,
- REG_BR_PROB, 0), 0));
- fallthru = BASIC_BLOCK (i)->succ;
- if (!fallthru->flags & EDGE_FALLTHRU)
- fallthru = fallthru->succ_next;
- branch = BASIC_BLOCK (i)->succ;
- if (branch->flags & EDGE_FALLTHRU)
- branch = branch->succ_next;
-
- branch->probability = probability;
- fallthru->probability = REG_BR_PROB_BASE - probability;
- }
}
ENTRY_BLOCK_PTR->succ->probability = REG_BR_PROB_BASE;