(set_dominates_use): In second loop, add check for copy_end.
authorJim Wilson <wilson@gcc.gnu.org>
Wed, 30 Apr 1997 23:53:13 +0000 (16:53 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 30 Apr 1997 23:53:13 +0000 (16:53 -0700)
From-SVN: r13997

gcc/unroll.c

index 2ab6b2a16bcf6db73a0857caadf04651da8a6c6c..2f9d9691366ac631b41c2a71a1afaa9c20d7be41 100644 (file)
@@ -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);
     }
 
This page took 0.065988 seconds and 5 git commands to generate.