From afbc98a500847c32c305d9736730ce2c38b181a7 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Wed, 16 Feb 1994 12:33:00 -0800 Subject: [PATCH] (scan_loop): Add no_labels_between_p call to tests which decide if... (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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/loop.c b/gcc/loop.c index c4b0872ddc2..0f015bbfa38 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -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])) { -- 2.30.2