loop.c (check_final_value): Don't miss a biv increment in a parallel.
authorMichael P. Hayes <michaelh@ongaonga.chch.cri.nz>
Wed, 27 Aug 1997 00:44:25 +0000 (00:44 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 27 Aug 1997 00:44:25 +0000 (18:44 -0600)
        * loop.c (check_final_value): Don't miss a biv increment in a
        parallel.

From-SVN: r14947

gcc/ChangeLog
gcc/loop.c

index 12b718f4521cfa107a59f1a53300345220a94414..296e59e28a0143937faf5a4b3172b1a7d47be6bd 100644 (file)
@@ -1,3 +1,8 @@
+Tue Aug 26 17:54:56 1997  Michael P. Hayes  (michaelh@ongaonga.chch.cri.nz>
+
+       * loop.c (check_final_value): Don't miss a biv increment in a
+       parallel.
+
 Tue Aug 26 12:03:49 1997  Jim Wilson  (wilson@cygnus.com)
 
        * dwarfout.c (dwarfout_file_scope_decl, case TYPE_DECL): Check
index 90bc53320b8a399e1163a3600723fc6b09b98ccd..f924e2a741691d07f06f2b3ae65b07bea160d441 100644 (file)
@@ -4894,8 +4894,7 @@ check_final_value (v, loop_start, loop_end)
                      break;
                    }
                }
-             else if (GET_CODE (PATTERN (p)) == SET
-                      && SET_DEST (PATTERN (p)) == v->src_reg)
+             else if (reg_set_p (v->src_reg, PATTERN (p)))
                biv_increment_seen = 1;
              else if (reg_mentioned_p (v->dest_reg, PATTERN (p)))
                last_giv_use = p;