From: J"orn Rennecke Date: Fri, 29 Jan 1999 14:36:59 +0000 (+0000) Subject: * loop.c (recombine_givs): Don't try to derive givs that have combined. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5310566c09b16e37a1db3ea358f03e3efef7ee46;p=gcc.git * loop.c (recombine_givs): Don't try to derive givs that have combined. From-SVN: r24906 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3e9552c6249..476d746a934 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Fri Jan 29 22:34:41 1999 J"orn Rennecke + + * loop.c (recombine_givs): Don't try to derive givs that have combined. + Fri Jan 29 15:00:39 1999 Kaveh R. Ghazi * toplev.c (notice, fnotice): Check ANSI_PROTOTYPES, not __STDC__, diff --git a/gcc/loop.c b/gcc/loop.c index 11728f08663..b0e7e87c923 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -7272,16 +7272,13 @@ recombine_givs (bl, loop_start, loop_end, unroll_p) rtx sum; v = giv_array[stats[i].giv_number]; - if (v->giv_type != DEST_REG || v->derived) + if (v->giv_type != DEST_REG || v->derived || v->same) continue; if (! last_giv) { - if (! v->same) - { - last_giv = v; - life_start = stats[i].start_luid; - life_end = stats[i].end_luid; - } + last_giv = v; + life_start = stats[i].start_luid; + life_end = stats[i].end_luid; continue; } /* Use unsigned arithmetic to model loop wrap around. */