]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Disable a minor optimization in cases where it would lose a REG_LABEL note.
authorBernd Schmidt <bernds@redhat.co.uk>
Thu, 11 Jan 2001 18:05:38 +0000 (18:05 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Thu, 11 Jan 2001 18:05:38 +0000 (18:05 +0000)
From-SVN: r38914

gcc/ChangeLog
gcc/loop.c

index 9848e5782fc50d2ca1cfbf767a53024a0776cb55..2575e7d1dae7e675e8e6028f3ea71df0a9db29cc 100644 (file)
@@ -1,5 +1,8 @@
 2001-01-11  Bernd Schmidt  <bernds@redhat.co.uk>
 
+       * loop.c (scan_loop): Disable copy propagation if we find a REG_LABEL
+       note.
+
        Revert this patch:
        2000-12-18  David Edelsohn  <edelsohn@gnu.org>
        * rs6000.c (and64_operand): Use logical_u_operand.
index d7242ed04eb2ee739f647b7a50bec494a68ad768..a231058ca1374a054bf0532ffba6a449f785da94 100644 (file)
@@ -919,6 +919,7 @@ scan_loop (loop_start, end, loop_cont, unroll_p, bct_p)
                  && VARRAY_INT (set_in_loop, regno) == 1
                  && ! side_effects_p (SET_SRC (set))
                  && ! find_reg_note (p, REG_RETVAL, NULL_RTX)
+                 && ! find_reg_note (p, REG_LABEL, NULL_RTX)
                  && (! SMALL_REGISTER_CLASSES
                      || (! (GET_CODE (SET_SRC (set)) == REG
                             && REGNO (SET_SRC (set)) < FIRST_PSEUDO_REGISTER)))