diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 12b718f4521..296e59e28a0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/loop.c b/gcc/loop.c index 90bc53320b8..f924e2a7416 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -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;