From: Eric Botcazou Date: Mon, 30 Nov 2015 09:43:55 +0000 (+0000) Subject: re PR target/28115 (possible bug in recog_memoized usage in rs6000.c??) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eadb344f4909ce2c73ee985ef2dd714268917235;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cbd30008e54..9fc2049635c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-11-30 Eric Botcazou + + PR target/28115 + * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko. + (sparc_adjust_cost): Add missing space. + 2015-11-30 Richard Biener PR c/68162 diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 93287235b8f..ae96a9bf8db 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -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) {