* loop.c (emit_iv_add_mult): Use single_set to examine new insn.

From-SVN: r38764
This commit is contained in:
Michael Hayes 2001-01-07 09:59:09 +00:00 committed by Michael Hayes
parent cabf38914c
commit 30a1181af5
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2001-01-07 Michael Hayes <mhayes@redhat.com>
* loop.c (emit_iv_add_mult): Use single_set to examine new insn.
2001-01-07 Richard Henderson <rth@redhat.com>
* sched-rgn.c (is_cfg_nonregular): Fix thinko's last change.

View File

@ -6904,9 +6904,12 @@ emit_iv_add_mult (b, m, a, reg, insert_before)
record_base_value (REGNO (SET_DEST (set)), SET_SRC (set), 0);
}
}
else if (GET_CODE (seq) == SET
&& GET_CODE (SET_DEST (seq)) == REG)
record_base_value (REGNO (SET_DEST (seq)), SET_SRC (seq), 0);
else
{
rtx set = single_set (seq);
if (set && GET_CODE (SET_DEST (set)) == REG)
record_base_value (REGNO (SET_DEST (set)), SET_SRC (set), 0);
}
}
/* Similar to emit_iv_add_mult, but compute cost rather than emitting