aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2011-08-18 13:47:21 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2011-08-18 13:47:21 +0000
commitb28e37f19c88ef07d48375730d67056b5d3cc0fc (patch)
tree85a30f035ae738cbb2b994c2dfeafdc8cc93e009 /gcc
parentc55b374bd599e51f1b0a61f740bc7cc57dfd8bb4 (diff)
downloadgcc-b28e37f19c88ef07d48375730d67056b5d3cc0fc.zip
gcc-b28e37f19c88ef07d48375730d67056b5d3cc0fc.tar.gz
gcc-b28e37f19c88ef07d48375730d67056b5d3cc0fc.tar.bz2
arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
gcc/ * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET. (arm_size_rtx_costs): Likewise. From-SVN: r177855
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/arm/arm.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4491a17..314efcd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
+
+ * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
+ (arm_size_rtx_costs): Likewise.
+
2011-08-18 Richard Guenther <rguenther@suse.de>
* tree.h (tree_int_cst_msb): Remove.
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index b32e863..d1a3490 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -7399,6 +7399,9 @@ arm_rtx_costs_1 (rtx x, enum rtx_code outer, int* total, bool speed)
*total = COSTS_N_INSNS (4);
return true;
+ case SET:
+ return false;
+
default:
*total = COSTS_N_INSNS (4);
return false;
@@ -7746,6 +7749,9 @@ arm_size_rtx_costs (rtx x, enum rtx_code code, enum rtx_code outer_code,
*total = COSTS_N_INSNS (1) + 1;
return true;
+ case SET:
+ return false;
+
default:
if (mode != VOIDmode)
*total = COSTS_N_INSNS (ARM_NUM_REGS (mode));