]> gcc.gnu.org Git - gcc.git/commitdiff
(scan_loop, strength_reduce): Go back to LOOP_TOP, not its NEXT_INSN
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 24 Feb 1994 12:31:30 +0000 (07:31 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 24 Feb 1994 12:31:30 +0000 (07:31 -0500)
(in case SCAN_START == LOOP_TOP).

From-SVN: r6615

gcc/loop.c

index 0f015bbfa38b1d4d18d03782e3e120a0fc51049f..4508a298ea12a86634eceeaec3d884903dc465d8 100644 (file)
@@ -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)
This page took 0.071241 seconds and 5 git commands to generate.