From eadb344f4909ce2c73ee985ef2dd714268917235 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Mon, 30 Nov 2015 09:43:55 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/config/sparc/sparc.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) 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) { -- 2.30.2