unroll.c (copy_loop_body): Update LABEL_NUSES for the exit label as necessary.
authorJeff Law <law@redhat.com>
Wed, 21 Nov 2001 00:50:56 +0000 (17:50 -0700)
committerJeff Law <law@gcc.gnu.org>
Wed, 21 Nov 2001 00:50:56 +0000 (17:50 -0700)
        * unroll.c (copy_loop_body): Update LABEL_NUSES for the
        exit label as necessary.

From-SVN: r47227

gcc/ChangeLog
gcc/unroll.c

index a4eea6c6cda2dff43a38a082cecf9eca4a8cc15a..57c1677c6a9702725ea1a26309780c5dff23d3d0 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-20  Jeff Law <law@redhat.com>
+
+       * unroll.c (copy_loop_body): Update LABEL_NUSES for the
+       exit label as necessary.
+
 2001-11-20  Brad Kaiser  <bkaiser@acelink.net>
  
        * reload1.c (elimination_effects): Use function_invariant_p
index 5d9f18e34a18d1a29b3185d1cc847c497064854b..4b7dd974925a7fead07be02b46cc7cd2bb17fa1a 100644 (file)
@@ -2075,6 +2075,7 @@ copy_loop_body (loop, copy_start, copy_end, map, exit_label, last_iteration,
                     that.  */
                  jmp = emit_jump_insn_after (gen_jump (exit_label), copy);
                  JUMP_LABEL (jmp) = exit_label;
+                 LABEL_NUSES (exit_label)++;
                  jmp = emit_barrier_after (jmp);
                  emit_label_after (lab, jmp);
                  LABEL_NUSES (lab) = 0;