OSDN Git Service

PR target/31022
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Mar 2007 04:14:59 +0000 (04:14 +0000)
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Mar 2007 04:14:59 +0000 (04:14 +0000)
* config/sh/sh.c (sh_adjust_cost): Use the result of single_set
instead of PATTERN.

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

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

index 9702ebb..bfa802b 100644 (file)
@@ -1,3 +1,9 @@
+2007-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       PR target/31022
+       * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
+       instead of PATTERN.
+
 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
index 68f8ec1..0aeb764 100644 (file)
@@ -8966,7 +8966,7 @@ sh_adjust_cost (rtx insn, rtx link ATTRIBUTE_UNUSED, rtx dep_insn, int cost)
             by 1 cycle.  */
          if (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 (dep_set),
                                          XEXP (SET_SRC (single_set (insn)),
                                                1)))
            cost++;