From 8aa0e194174f946e6524756950adc49840b44572 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 19 Sep 2000 00:35:55 -0700 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/unroll.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 279b78072e2..14e0651145d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-09-19 Richard Henderson + + * unroll.c (copy_loop_body): Update LABEL_NUSES before + calling invert_jump. + 2000-09-18 Geoff Keating * combine.c (can_combine_p): Don't substitute an ASM_OPERANDS diff --git a/gcc/unroll.c b/gcc/unroll.c index 115aded220e..d37423f23d3 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -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 && ! 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, CODE_LABEL_NUMBER (JUMP_LABEL (insn))); + LABEL_NUSES (JUMP_LABEL (copy))++; + /* This is a branch to the beginning of the loop; this is the last insn being copied; and this is not the last iteration. In this case, we want to change the original fall through