Commit 8aa0e194 by Richard Henderson Committed by Richard Henderson

unroll.c (copy_loop_body): Update LABEL_NUSES before calling invert_jump.

        * unroll.c (copy_loop_body): Update LABEL_NUSES before
        calling invert_jump.

From-SVN: r36529
parent 033b5a34
2000-09-19 Richard Henderson <rth@cygnus.com>
* unroll.c (copy_loop_body): Update LABEL_NUSES before
calling invert_jump.
2000-09-18 Geoff Keating <geoffk@cygnus.com> 2000-09-18 Geoff Keating <geoffk@cygnus.com>
* combine.c (can_combine_p): Don't substitute an ASM_OPERANDS * combine.c (can_combine_p): Don't substitute an ASM_OPERANDS
......
...@@ -2050,10 +2050,12 @@ copy_loop_body (loop, copy_start, copy_end, map, exit_label, last_iteration, ...@@ -2050,10 +2050,12 @@ copy_loop_body (loop, copy_start, copy_end, map, exit_label, last_iteration,
if (JUMP_LABEL (insn) == start_label && insn == copy_end if (JUMP_LABEL (insn) == start_label && insn == copy_end
&& ! last_iteration) && ! last_iteration)
{ {
/* Update JUMP_LABEL correctly to make invert_jump working. */ /* Update JUMP_LABEL make invert_jump work correctly. */
JUMP_LABEL (copy) = get_label_from_map (map, JUMP_LABEL (copy) = get_label_from_map (map,
CODE_LABEL_NUMBER CODE_LABEL_NUMBER
(JUMP_LABEL (insn))); (JUMP_LABEL (insn)));
LABEL_NUSES (JUMP_LABEL (copy))++;
/* This is a branch to the beginning of the loop; this is the /* This is a branch to the beginning of the loop; this is the
last insn being copied; and this is not the last iteration. last insn being copied; and this is not the last iteration.
In this case, we want to change the original fall through In this case, we want to change the original fall through
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment