re PR target/31022 ([SH4] internal compiler error with inline)

PR target/31022
	* config/sh/sh.c (sh_adjust_cost): Use the result of single_set
	instead of PATTERN.

From-SVN: r123049
This commit is contained in:
Kaz Kojima 2007-03-19 04:14:59 +00:00
parent ecc418c4f9
commit c6ac6e82ac
2 changed files with 7 additions and 1 deletions

View 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,

View 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++;