aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@redhat.com>2016-11-24 12:17:52 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2016-11-24 12:17:52 +0000
commit334442f282a9d61723a0a0f299ba5ad7b00763b8 (patch)
tree0dc91940b519ec0142dbc2811d4138171bed6390 /gcc
parent7998af1f4bf876f7ccf10ce956859e3dc2183774 (diff)
downloadgcc-334442f282a9d61723a0a0f299ba5ad7b00763b8.zip
gcc-334442f282a9d61723a0a0f299ba5ad7b00763b8.tar.gz
gcc-334442f282a9d61723a0a0f299ba5ad7b00763b8.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/rtlanal.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8d9de43..7b8d382 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,6 +1,9 @@
2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
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.
2016-11-24 Bin Cheng <bin.cheng@arm.com>
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index 17dbb1e..7521a4e 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);
}