diff options
author | kan <kan@FreeBSD.org> | 2005-06-03 03:28:44 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2005-06-03 03:28:44 +0000 |
commit | 2156e40a831a8e0ab68e4bc091c2940bf46ca6df (patch) | |
tree | f0dc8ad34f9fcaf27052e24e893a4284b5fee6e9 /contrib/gcc/loop-unroll.c | |
parent | 0a20abcc95340c9d2bb59421bac84eca4fb43b0c (diff) | |
download | FreeBSD-src-2156e40a831a8e0ab68e4bc091c2940bf46ca6df.zip FreeBSD-src-2156e40a831a8e0ab68e4bc091c2940bf46ca6df.tar.gz |
Gcc 3.4.4 release.
Diffstat (limited to 'contrib/gcc/loop-unroll.c')
-rw-r--r-- | contrib/gcc/loop-unroll.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/contrib/gcc/loop-unroll.c b/contrib/gcc/loop-unroll.c index aae1757..4852bb2 100644 --- a/contrib/gcc/loop-unroll.c +++ b/contrib/gcc/loop-unroll.c @@ -1269,7 +1269,9 @@ unroll_loop_stupid (struct loops *loops, struct loop *loop) /* Expand a bct instruction in a branch and an increment. If flag_inc is set, the induction variable does not need to be incremented. */ -void expand_bct (edge e, int flag_inc) + +static void +expand_bct (edge e, int flag_inc) { rtx bct_insn = BB_END (e->src); rtx cmp; @@ -1278,12 +1280,11 @@ void expand_bct (edge e, int flag_inc) rtx tgt; rtx condition; - rtx label; + rtx labelref; rtx reg; - rtx jump; - rtx pattern = PATTERN(bct_insn); + rtx pattern = PATTERN (bct_insn); - if (!(is_bct_cond(bct_insn))) + if (!is_bct_cond (bct_insn)) return; inc = get_var_set_from_bct (bct_insn); @@ -1299,14 +1300,12 @@ void expand_bct (edge e, int flag_inc) } condition = XEXP (SET_SRC (cmp), 0); - label = XEXP (SET_SRC (cmp), 1); + labelref = XEXP (SET_SRC (cmp), 1); do_compare_rtx_and_jump (copy_rtx (reg), XEXP (condition, 1), GET_CODE (condition), 0, GET_MODE (reg), NULL_RTX, NULL_RTX, - label); - jump = get_last_insn (); - JUMP_LABEL (jump) = label; + XEXP (labelref, 0)); seq = get_insns (); end_sequence (); emit_insn_after (seq, bct_insn); |