From 6b857f0460ca28109ba3ad77272a4e2b33e1c710 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Wed, 30 Apr 1997 16:53:13 -0700 Subject: (set_dominates_use): In second loop, add check for copy_end. From-SVN: r13997 --- gcc/unroll.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/unroll.c') 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); } -- cgit v1.1