re PR target/28115 (possible bug in recog_memoized usage in rs6000.c??)

PR target/28115
	* config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
	(sparc_adjust_cost): Add missing space.

From-SVN: r231059
This commit is contained in:
Eric Botcazou 2015-11-30 09:43:55 +00:00 committed by Eric Botcazou
parent cee532f01d
commit eadb344f49
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
PR target/28115
* config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
(sparc_adjust_cost): Add missing space.
2015-11-30 Richard Biener <rguenther@suse.de>
PR c/68162

View file

@ -9353,8 +9353,8 @@ supersparc_adjust_cost (rtx_insn *insn, rtx link, rtx_insn *dep_insn, int cost)
{
enum attr_type insn_type;
if (! recog_memoized (insn))
return 0;
if (recog_memoized (insn) < 0)
return cost;
insn_type = get_attr_type (insn);
@ -9487,7 +9487,7 @@ hypersparc_adjust_cost (rtx_insn *insn, rtx link, rtx_insn *dep_insn, int cost)
}
static int
sparc_adjust_cost(rtx_insn *insn, rtx link, rtx_insn *dep, int cost)
sparc_adjust_cost (rtx_insn *insn, rtx link, rtx_insn *dep, int cost)
{
switch (sparc_cpu)
{