unroll.c (copy_loop_body): Examine SET_DEST of single_set not of pattern.

* unroll.c (copy_loop_body): Examine SET_DEST of single_set
        not of pattern.

From-SVN: r30149
This commit is contained in:
Richard Henderson 1999-10-24 13:31:26 -07:00 committed by Richard Henderson
parent 0bae01847e
commit 65c8a03d5c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sun Oct 24 13:29:28 1999 Richard Henderson <rth@cygnus.com>
* unroll.c (copy_loop_body): Examine SET_DEST of single_set
not of pattern.
Sun Oct 24 13:14:20 1999 Graham <grahams@rcp.co.uk>
Richard Henderson <rth@cygnus.com>

View File

@ -1964,7 +1964,7 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration,
settings which would invalidate this. */
if (dest_reg_was_split)
{
int regno = REGNO (SET_DEST (pattern));
int regno = REGNO (SET_DEST (set));
if ((size_t) regno < VARRAY_SIZE (map->const_equiv_varray)
&& (VARRAY_CONST_EQUIV (map->const_equiv_varray, regno).age