Commit 13cc4787 by Bernd Schmidt Committed by Bernd Schmidt

arm.c (arm_rtx_costs_1): Remove second clause from the if statement which adds extra costs to...

	* config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
	if statement which adds extra costs to frame-related expressions.

From-SVN: r162816
parent 37119410
...@@ -85,6 +85,9 @@ ...@@ -85,6 +85,9 @@
* config/arm/ldmstm.md: New file. * config/arm/ldmstm.md: New file.
* config/arm/arm-ldmstm.ml: New file. * config/arm/arm-ldmstm.ml: New file.
* config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
if statement which adds extra costs to frame-related expressions.
2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
* config/arm/arm.c (COSTS_N_INSNS): Remove definition. * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
......
...@@ -6646,12 +6646,10 @@ arm_rtx_costs_1 (rtx x, enum rtx_code outer, int* total, bool speed) ...@@ -6646,12 +6646,10 @@ arm_rtx_costs_1 (rtx x, enum rtx_code outer, int* total, bool speed)
since then they might not be moved outside of loops. As a compromise since then they might not be moved outside of loops. As a compromise
we allow integration with ops that have a constant as their second we allow integration with ops that have a constant as their second
operand. */ operand. */
if ((REG_OR_SUBREG_REG (XEXP (x, 0)) if (REG_OR_SUBREG_REG (XEXP (x, 0))
&& ARM_FRAME_RTX (REG_OR_SUBREG_RTX (XEXP (x, 0))) && ARM_FRAME_RTX (REG_OR_SUBREG_RTX (XEXP (x, 0)))
&& GET_CODE (XEXP (x, 1)) != CONST_INT) && GET_CODE (XEXP (x, 1)) != CONST_INT)
|| (REG_OR_SUBREG_REG (XEXP (x, 0)) *total = COSTS_N_INSNS (1);
&& ARM_FRAME_RTX (REG_OR_SUBREG_RTX (XEXP (x, 0)))))
*total = 4;
if (mode == DImode) if (mode == DImode)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment