aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>2016-05-19 13:54:31 +0000
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>2016-05-19 13:54:31 +0000
commitf65970cfd092c36035f7a3c683707c2604bcd4a3 (patch)
tree3583ad117f5f60599f47e0fe5ed9302d1865c5d2 /gcc/config
parentafb7243286fdf0ffdc965027e5d382604fe191f8 (diff)
downloadgcc-f65970cfd092c36035f7a3c683707c2604bcd4a3.zip
gcc-f65970cfd092c36035f7a3c683707c2604bcd4a3.tar.gz
gcc-f65970cfd092c36035f7a3c683707c2604bcd4a3.tar.bz2
[ARM] Fix costing of sign-extending load in rtx costs
* config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case): Don't add cost of inner memory when handling sign-extended loads. From-SVN: r236461
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/arm/arm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index c3f74dc..12060ba 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -10762,8 +10762,6 @@ arm_new_rtx_costs (rtx x, enum rtx_code code, enum rtx_code outer_code,
if ((arm_arch4 || GET_MODE (XEXP (x, 0)) == SImode)
&& MEM_P (XEXP (x, 0)))
{
- *cost = rtx_cost (XEXP (x, 0), VOIDmode, code, 0, speed_p);
-
if (mode == DImode)
*cost += COSTS_N_INSNS (1);