diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1994-02-24 07:31:30 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1994-02-24 07:31:30 -0500 |
commit | f67ff5de60fced297f9e770a5be85ecbb96b6551 (patch) | |
tree | eab109933a230528aba18b8dd90cf381d426210a /gcc/loop.c | |
parent | 70659ac0df5a495767794a02c1935f7f56e7fc6e (diff) | |
download | gcc-f67ff5de60fced297f9e770a5be85ecbb96b6551.zip gcc-f67ff5de60fced297f9e770a5be85ecbb96b6551.tar.gz gcc-f67ff5de60fced297f9e770a5be85ecbb96b6551.tar.bz2 |
(scan_loop, strength_reduce): Go back to LOOP_TOP, not its NEXT_INSN
(in case SCAN_START == LOOP_TOP).
From-SVN: r6615
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) |