[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
This commit is contained in:
Kyrylo Tkachov 2016-05-19 13:54:31 +00:00 committed by Kyrylo Tkachov
parent afb7243286
commit f65970cfd0
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
Don't add cost of inner memory when handling sign-extended
loads.
2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com> 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
PR rtl-optimization/71148 PR rtl-optimization/71148

View File

@ -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) if ((arm_arch4 || GET_MODE (XEXP (x, 0)) == SImode)
&& MEM_P (XEXP (x, 0))) && MEM_P (XEXP (x, 0)))
{ {
*cost = rtx_cost (XEXP (x, 0), VOIDmode, code, 0, speed_p);
if (mode == DImode) if (mode == DImode)
*cost += COSTS_N_INSNS (1); *cost += COSTS_N_INSNS (1);