diff options
author | Jan Hubicka <jh@suse.cz> | 2002-01-07 12:00:39 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2002-01-07 11:00:39 +0000 |
commit | 6ba4d630f6bcede0ccfd73baa99c1f964d188d43 (patch) | |
tree | e8c22bda345dccb8f6afa5302ff1bacc8d728799 /gcc/unroll.c | |
parent | b34c06e332d1360bf0761d089533602965c858e3 (diff) | |
download | gcc-6ba4d630f6bcede0ccfd73baa99c1f964d188d43.tar.gz |
unroll.c (copy_loop_body): Always properly update JUMP_LABEL and LABEL_NUSES.
* unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
LABEL_NUSES.
From-SVN: r48600
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r-- | gcc/unroll.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c index 5f1560df201..f9fd669cde7 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -2073,14 +2073,16 @@ copy_loop_body (loop, copy_start, copy_end, map, exit_label, last_iteration, copy = emit_jump_insn (pattern); REG_NOTES (copy) = initial_reg_note_copy (REG_NOTES (insn), map); - if (JUMP_LABEL (insn) == start_label && insn == copy_end - && ! last_iteration) + if (JUMP_LABEL (insn)) { - /* Update JUMP_LABEL make invert_jump work correctly. */ JUMP_LABEL (copy) = get_label_from_map (map, CODE_LABEL_NUMBER (JUMP_LABEL (insn))); LABEL_NUSES (JUMP_LABEL (copy))++; + } + if (JUMP_LABEL (insn) == start_label && insn == copy_end + && ! last_iteration) + { /* This is a branch to the beginning of the loop; this is the last insn being copied; and this is not the last iteration. |