diff options
author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-11 00:20:51 +0000 |
---|---|---|
committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-11 00:20:51 +0000 |
commit | 5496dbfccb2ff4c2376e880ead7a87d7a9178609 (patch) | |
tree | 753b85b3ca471980585369128978b9ba6e133c3a /gcc/profile.c | |
parent | 65d06e81de1a9905f0d5d06ebd56c6bd40b842e4 (diff) | |
download | gcc-5496dbfccb2ff4c2376e880ead7a87d7a9178609.tar.gz |
2003-12-11 Steven Bosscher <steven@gcc.gnu.org>
* basic-block.h (BLOCK_HEAD, BLOCK_END): Remove.
(BLOCK_HEAD_TREE, BLOCK_END_TREE): Remove.
(basic_block_def): Rename `head' to `head_' and `end' to `end_'.
(BB_HEAD, BB_END): New accessor macros for the `head_' and `end_'
fields of a basic block.
* bb-reorder.c, bt-load.c, caller-save.c, cfg.c, cfganal.c,
cfgbuild.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgloopanal.c,
cfgloopmanip.c, cfgrtl.c, combine.c, conflict.c, df.c, emit-rtl.c,
final.c, flow.c, function.c, gcse.c, global.c, graph.c,
haifa-sched.c, ifcvt.c, lcm.c, local-alloc.c, loop-unswitch.c,
loop.c, postreload.c, predict.c, profile.c, ra-build.c, ra-debug.c,
ra-rewrite.c, ra.c, recog.c, reg-stack.c, regclass.c, regmove.c,
regrename.c, reload1.c, resource.c, sched-ebb.c, sched-rgn.c,
sibcall.c, tracer.c, config/frv/frv.c, config/i386/i386.c,
config/ia64/ia64.c: Use the BB_HEAD and BB_END macros instead of
accessing the `head' and `end' fields of a basic block directly.
* gengtype.c: Add missing piece from earlier patch. Dunno what
I was thinking...
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74520 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/profile.c')
-rw-r--r-- | gcc/profile.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/profile.c b/gcc/profile.c index 625a904a428..5e117e1a1ed 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -512,10 +512,10 @@ compute_branch_probabilities (void) || (e->count > bb->count && e->dest != EXIT_BLOCK_PTR)) { - rtx insn = bb->end; + rtx insn = BB_END (bb); while (GET_CODE (insn) != CALL_INSN - && insn != bb->head + && insn != BB_HEAD (bb) && keep_with_call_p (insn)) insn = PREV_INSN (insn); if (GET_CODE (insn) == CALL_INSN) @@ -534,7 +534,7 @@ compute_branch_probabilities (void) for (e = bb->succ; e; e = e->succ_next) e->probability = (e->count * REG_BR_PROB_BASE + bb->count / 2) / bb->count; if (bb->index >= 0 - && any_condjump_p (bb->end) + && any_condjump_p (BB_END (bb)) && bb->succ->succ_next) { int prob; @@ -554,15 +554,15 @@ compute_branch_probabilities (void) index = 19; hist_br_prob[index]++; - note = find_reg_note (bb->end, REG_BR_PROB, 0); + note = find_reg_note (BB_END (bb), REG_BR_PROB, 0); /* There may be already note put by some other pass, such as builtin_expect expander. */ if (note) XEXP (note, 0) = GEN_INT (prob); else - REG_NOTES (bb->end) + REG_NOTES (BB_END (bb)) = gen_rtx_EXPR_LIST (REG_BR_PROB, GEN_INT (prob), - REG_NOTES (bb->end)); + REG_NOTES (BB_END (bb))); num_branches++; } } @@ -594,7 +594,7 @@ compute_branch_probabilities (void) e->probability = REG_BR_PROB_BASE / total; } if (bb->index >= 0 - && any_condjump_p (bb->end) + && any_condjump_p (BB_END (bb)) && bb->succ->succ_next) num_branches++, num_never_executed; } @@ -892,7 +892,7 @@ branch_prob (void) FOR_EACH_BB (bb) { - rtx insn = bb->head; + rtx insn = BB_HEAD (bb); int ignore_next_note = 0; offset = 0; @@ -905,7 +905,7 @@ branch_prob (void) else insn = NEXT_INSN (insn); - while (insn != bb->end) + while (insn != BB_END (bb)) { if (GET_CODE (insn) == NOTE) { |