aboutsummaryrefslogtreecommitdiff
path: root/gcc/unroll.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1997-04-30 16:53:13 -0700
committerJim Wilson <wilson@gcc.gnu.org>1997-04-30 16:53:13 -0700
commit6b857f0460ca28109ba3ad77272a4e2b33e1c710 (patch)
tree836312867f39d8a4c0e9281be5f3bca9fb9fc156 /gcc/unroll.c
parent516dd80f5c10c865107ddd49371094894720e9eb (diff)
downloadgcc-6b857f0460ca28109ba3ad77272a4e2b33e1c710.zip
gcc-6b857f0460ca28109ba3ad77272a4e2b33e1c710.tar.gz
gcc-6b857f0460ca28109ba3ad77272a4e2b33e1c710.tar.bz2
(set_dominates_use): In second loop, add check for copy_end.
From-SVN: r13997
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r--gcc/unroll.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c
index 2ab6b2a..2f9d969 100644
--- a/gcc/unroll.c
+++ b/gcc/unroll.c
@@ -3617,6 +3617,10 @@ set_dominates_use (regno, first_uid, last_uid, copy_start, copy_end)
can not be sure that FIRST_UID dominates LAST_UID. */
if (GET_CODE (p) == CODE_LABEL)
return 0;
+ /* Could not find LAST_UID, but we reached the end of the loop, so
+ it must be safe. */
+ else if (p == copy_end)
+ return 1;
p = NEXT_INSN (p);
}