From: Bernd Schmidt Date: Thu, 24 Nov 2016 12:17:52 +0000 (+0000) Subject: re PR rtl-optimization/78120 (If conversion no longer performed) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=334442f282a9d61723a0a0f299ba5ad7b00763b8;p=gcc.git re PR rtl-optimization/78120 (If conversion no longer performed) PR rtl-optimization/78120 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost. From-SVN: r242833 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8d9de43233e..7b8d38205ac 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2016-11-24 Bernd Schmidt + PR rtl-optimization/78120 + * rtlanal.c (insn_rtx_cost): Use set_rtx_cost. + PR rtl-optimization/78120 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs. diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 17dbb1eaeb1..7521a4ece2d 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -5237,7 +5237,7 @@ insn_rtx_cost (rtx pat, bool speed) else return 0; - cost = set_src_cost (SET_SRC (set), GET_MODE (SET_DEST (set)), speed); + cost = set_rtx_cost (set, speed); return cost > 0 ? cost : COSTS_N_INSNS (1); }