epiphany.c (epiphany_adjust_cost): Use reg_overlap_mentioned_p.
* config/epiphany/epiphany.c (epiphany_adjust_cost): Use reg_overlap_mentioned_p. From-SVN: r193920
This commit is contained in:
parent
9b7542b9c2
commit
d9b83a68e1
|
@ -12,6 +12,9 @@
|
|||
|
||||
* config/epiphany/epiphany.md (isub_i+1): Work around generator bug.
|
||||
|
||||
* config/epiphany/epiphany.c (epiphany_adjust_cost): Use
|
||||
reg_overlap_mentioned_p.
|
||||
|
||||
2012-11-28 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR debug/36728
|
||||
|
|
|
@ -1926,10 +1926,10 @@ epiphany_adjust_cost (rtx insn, rtx link, rtx dep_insn, int cost)
|
|||
rtx set = single_set (insn);
|
||||
|
||||
if (set
|
||||
&& !reg_mentioned_p (SET_DEST (dep_set), SET_SRC (set))
|
||||
&& !reg_overlap_mentioned_p (SET_DEST (dep_set), SET_SRC (set))
|
||||
&& (!MEM_P (SET_DEST (set))
|
||||
|| !reg_mentioned_p (SET_DEST (dep_set),
|
||||
XEXP (SET_DEST (set), 0))))
|
||||
|| !reg_overlap_mentioned_p (SET_DEST (dep_set),
|
||||
XEXP (SET_DEST (set), 0))))
|
||||
cost = 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue