(scan_loop): When skipping consecutive insns, don't count notes.
authorDoug Evans <dje@gnu.org>
Fri, 8 Oct 1993 17:55:28 +0000 (17:55 +0000)
committerDoug Evans <dje@gnu.org>
Fri, 8 Oct 1993 17:55:28 +0000 (17:55 +0000)
From-SVN: r5682

gcc/loop.c

index 6f68b58c5b3d8c9b2dc953abd765ff26b77b7301..a22e8a0b85678419d21d3054ba6ae5871d836420 100644 (file)
@@ -796,7 +796,7 @@ scan_loop (loop_start, end, nregs)
              if (m->consec > 0)
                {
                  /* Skip this insn, not checking REG_LIBCALL notes.  */
-                 p = NEXT_INSN (p);
+                 p = next_nonnote_insn (p);
                  /* Skip the consecutive insns, if there are any.  */
                  p = skip_consec_insns (p, m->consec);
                  /* Back up to the last insn of the consecutive group.  */