]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/31022 ([SH4] internal compiler error with inline)
authorKaz Kojima <kkojima@gcc.gnu.org>
Sun, 20 May 2007 23:54:01 +0000 (23:54 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Sun, 20 May 2007 23:54:01 +0000 (23:54 +0000)
PR target/31022
Backport from mainline.
* config/sh/sh.c (sh_adjust_cost): Use the result of single_set
instead of PATTERN.

From-SVN: r124883

gcc/ChangeLog
gcc/config/sh/sh.c

index e7b4c9d0261ccf7fdc2969577e4bb55fe6f0af76..61c3490e00fbf3a01869424da09c204fdc73b3fe 100644 (file)
@@ -1,3 +1,10 @@
+2007-05-20  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       PR target/31022
+       Backport from mainline.
+       * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
+       instead of PATTERN.
+
 2007-05-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        PR rtl-optimization/31691
index 216bbab447db51bb198fb8e45ecf58e44164ece9..5b9ab5cdab655635f9a5fa8e8ec7b3cde155da0f 100644 (file)
@@ -8477,7 +8477,7 @@ sh_adjust_cost (rtx insn, rtx link ATTRIBUTE_UNUSED, rtx dep_insn, int cost)
       else if (TARGET_SH4
               && get_attr_type (insn) == TYPE_DYN_SHIFT
               && get_attr_any_int_load (dep_insn) == ANY_INT_LOAD_YES
-              && reg_overlap_mentioned_p (SET_DEST (PATTERN (dep_insn)),
+              && reg_overlap_mentioned_p (SET_DEST (single_set (dep_insn)),
                                           XEXP (SET_SRC (single_set (insn)),
                                                 1)))
        cost++;