]> gcc.gnu.org Git - gcc.git/commitdiff
(find_and_verify_loops): When moving exit blocks out of the loop,
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 15 Sep 1995 21:52:15 +0000 (17:52 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 15 Sep 1995 21:52:15 +0000 (17:52 -0400)
verify that the target of P is within the current loop.

From-SVN: r10364

gcc/loop.c

index f48a42a0930270cda29f5b3734254f9a90c24d1c..6f21104abaef265c2588bbce2ec4883dce60c198 100644 (file)
@@ -2366,6 +2366,12 @@ find_and_verify_loops (f)
                  }
              }
 
+           /* Make sure that the target of P is within the current loop.  */
+
+           if (JUMP_LABEL (p)
+               && uid_loop_num[INSN_UID (JUMP_LABEL (p))] != this_loop_num)
+             outer_loop = this_loop_num;
+
            /* If we stopped on a JUMP_INSN to the next insn after INSN,
               we have a block of code to try to move.
 
This page took 0.073715 seconds and 5 git commands to generate.