* config/epiphany/epiphany.c (epiphany_adjust_cost): Use
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Nov 2012 02:43:19 +0000 (02:43 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Nov 2012 02:43:19 +0000 (02:43 +0000)
        reg_overlap_mentioned_p.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193920 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/epiphany/epiphany.c

index fb11de0..0aa5d30 100644 (file)
@@ -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
index 8901c4a..c074813 100644 (file)
@@ -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;
        }
     }