aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1994-02-16 12:33:00 -0800
committerJim Wilson <wilson@gcc.gnu.org>1994-02-16 12:33:00 -0800
commitafbc98a500847c32c305d9736730ce2c38b181a7 (patch)
treeec55f2b13af5ffb6c9fb3e50cf0370bc314ecb69 /gcc/loop.c
parentdd22b925ad78dc0192157bb0587f120edac8cea5 (diff)
downloadgcc-afbc98a500847c32c305d9736730ce2c38b181a7.zip
gcc-afbc98a500847c32c305d9736730ce2c38b181a7.tar.gz
gcc-afbc98a500847c32c305d9736730ce2c38b181a7.tar.bz2
(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
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index c4b0872..0f015bb 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]))
{