(scan_loop): Add no_labels_between_p call to tests which decide if...
authorJim Wilson <wilson@gcc.gnu.org>
Wed, 16 Feb 1994 20:33:00 +0000 (12:33 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 16 Feb 1994 20:33:00 +0000 (12:33 -0800)
(scan_loop): Add no_labels_between_p call to tests which
decide if an invariant reg can be safely replaced with its SET_SRC.

From-SVN: r6574

gcc/loop.c

index c4b0872ddc2963a7580b63fe7793d001b210c1f3..0f015bbfa38b1d4d18d03782e3e120a0fc51049f 100644 (file)
@@ -743,7 +743,8 @@ scan_loop (loop_start, end, nregs)
                     a call-clobbered register and the life of REGNO
                     might span a call.  */
                  && ! modified_between_p (SET_SRC (set), p,
-                                         reg_single_usage[regno])
+                                          reg_single_usage[regno])
+                 && no_labels_between_p (p, reg_single_usage[regno])
                  && validate_replace_rtx (SET_DEST (set), SET_SRC (set),
                                           reg_single_usage[regno]))
                {