From: Joern Rennecke Date: Thu, 29 Nov 2012 02:43:19 +0000 (+0000) Subject: epiphany.c (epiphany_adjust_cost): Use reg_overlap_mentioned_p. X-Git-Tag: releases/gcc-4.8.0~1707 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d9b83a68e1fc3b4a1a1386189e9e7d4f79323aed;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fb11de07682e..0aa5d30009d2 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 8901c4acc8cd..c0748131032e 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; } }