From d9b83a68e1fc3b4a1a1386189e9e7d4f79323aed Mon Sep 17 00:00:00 2001 From: Joern Rennecke Date: Thu, 29 Nov 2012 02:43:19 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 3 +++ gcc/config/epiphany/epiphany.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fb11de07682..0aa5d30009d 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 PR debug/36728 diff --git a/gcc/config/epiphany/epiphany.c b/gcc/config/epiphany/epiphany.c index 8901c4acc8c..c0748131032 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; } } -- 2.30.2