diff options
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/config/epiphany/epiphany.c | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fb11de0..0aa5d30 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/epiphany/epiphany.c b/gcc/config/epiphany/epiphany.c index 8901c4a..c074813 100644 --- a/gcc/config/epiphany/epiphany.c +++ b/gcc/config/epiphany/epiphany.c @@ -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; } } |