From 3ad0cfaf1dd7f3bf14e8848d9521e54fd6bc43a9 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 20 Oct 1993 07:56:55 -0400 Subject: [PATCH] (find_and_verify_loops): Properly continue loop after moving a block of code near a loop exit. From-SVN: r5826 --- gcc/loop.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/loop.c b/gcc/loop.c index a22e8a0b856..e519a3b5f87 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -1,5 +1,5 @@ /* Move constant computations out of loops. - Copyright (C) 1987, 1988, 1989, 1991, 1992 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 89, 91, 92, 1993 Free Software Foundation, Inc. This file is part of GNU CC. @@ -2423,6 +2423,9 @@ find_and_verify_loops (f) if (--LABEL_NUSES (cond_label) == 0) delete_insn (cond_label); + + /* This loop will be continued with NEXT_INSN (insn). */ + insn = PREV_INSN (insn); } } } -- 2.30.2