From f67ff5de60fced297f9e770a5be85ecbb96b6551 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 24 Feb 1994 07:31:30 -0500 Subject: [PATCH] (scan_loop, strength_reduce): Go back to LOOP_TOP, not its NEXT_INSN (in case SCAN_START == LOOP_TOP). From-SVN: r6615 --- gcc/loop.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/loop.c b/gcc/loop.c index 0f015bbfa38..4508a298ea1 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -1,5 +1,5 @@ /* Move constant computations out of loops. - Copyright (C) 1987, 88, 89, 91, 92, 1993 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 89, 91, 92, 93, 1994 Free Software Foundation, Inc. This file is part of GNU CC. @@ -624,7 +624,7 @@ scan_loop (loop_start, end, nregs) if (p == end) { if (loop_top != 0) - p = NEXT_INSN (loop_top); + p = loop_top; else break; if (p == scan_start) @@ -3198,7 +3198,7 @@ strength_reduce (scan_start, end, loop_top, insn_count, if (p == end) { if (loop_top != 0) - p = NEXT_INSN (loop_top); + p = loop_top; else break; if (p == scan_start) @@ -3251,7 +3251,7 @@ strength_reduce (scan_start, end, loop_top, insn_count, if (insn == end) { if (loop_top != 0) - insn = NEXT_INSN (loop_top); + insn = loop_top; else break; if (insn == scan_start) @@ -3455,7 +3455,7 @@ strength_reduce (scan_start, end, loop_top, insn_count, if (p == end) { if (loop_top != 0) - p = NEXT_INSN (loop_top); + p = loop_top; else break; if (p == scan_start)