diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-08 16:18:49 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-08 16:18:49 +0000 |
commit | 71fd77c9b4b3398097c48d6c1d3be7296d670f89 (patch) | |
tree | ca77b69e8b4f032f1066c6a31847233f9db7f8e5 /gcc/loop-doloop.c | |
parent | 313793ac30b7208dfb273ab1823bed6b0c20deb4 (diff) | |
download | gcc-71fd77c9b4b3398097c48d6c1d3be7296d670f89.tar.gz |
2008-07-08 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r137620
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@137632 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop-doloop.c')
-rw-r--r-- | gcc/loop-doloop.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/gcc/loop-doloop.c b/gcc/loop-doloop.c index c6e0540d15f..293b3ae3776 100644 --- a/gcc/loop-doloop.c +++ b/gcc/loop-doloop.c @@ -321,9 +321,8 @@ add_test (rtx cond, edge *e, basic_block dest) JUMP_LABEL (jump) = label; /* The jump is supposed to handle an unlikely special case. */ - REG_NOTES (jump) - = gen_rtx_EXPR_LIST (REG_BR_PROB, - const0_rtx, REG_NOTES (jump)); + add_reg_note (jump, REG_BR_PROB, const0_rtx); + LABEL_NUSES (label)++; make_edge (bb, dest, (*e)->flags & ~EDGE_FALLTHRU); @@ -518,18 +517,14 @@ doloop_modify (struct loop *loop, struct niter_desc *desc, /* Add a REG_NONNEG note if the actual or estimated maximum number of iterations is non-negative. */ if (nonneg) - { - REG_NOTES (jump_insn) - = gen_rtx_EXPR_LIST (REG_NONNEG, NULL_RTX, REG_NOTES (jump_insn)); - } + add_reg_note (jump_insn, REG_NONNEG, NULL_RTX); + /* Update the REG_BR_PROB note. */ if (true_prob_val) { /* Seems safer to use the branch probability. */ - REG_NOTES (jump_insn) = - gen_rtx_EXPR_LIST (REG_BR_PROB, - GEN_INT (desc->in_edge->probability), - REG_NOTES (jump_insn)); + add_reg_note (jump_insn, REG_BR_PROB, + GEN_INT (desc->in_edge->probability)); } } |