aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-10-20 07:56:55 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1993-10-20 07:56:55 -0400
commit3ad0cfaf1dd7f3bf14e8848d9521e54fd6bc43a9 (patch)
tree09fb51e4d0e6fe9b67aafc65bda87860dbaf2633 /gcc
parentccaf7a07c8347fff6d2e26856d0440b68178a574 (diff)
downloadgcc-3ad0cfaf1dd7f3bf14e8848d9521e54fd6bc43a9.zip
gcc-3ad0cfaf1dd7f3bf14e8848d9521e54fd6bc43a9.tar.gz
gcc-3ad0cfaf1dd7f3bf14e8848d9521e54fd6bc43a9.tar.bz2
(find_and_verify_loops): Properly continue loop after moving a block
of code near a loop exit. From-SVN: r5826
Diffstat (limited to 'gcc')
-rw-r--r--gcc/loop.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index a22e8a0..e519a3b 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);
}
}
}