[ARM] Handle simple SImode PLUS and MINUS cases in rtx costs

* config/arm/arm.c (arm_new_rtx_costs, case PLUS, MINUS):
	Add cost of alu.arith in simple SImode case.

From-SVN: r217692
This commit is contained in:
Kyrylo Tkachov 2014-11-18 09:33:25 +00:00 committed by Kyrylo Tkachov
parent ddcfa953fc
commit e8c4308977
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/arm.c (arm_new_rtx_costs, case PLUS, MINUS):
Add cost of alu.arith in simple SImode case.
2014-11-18 Jiong Wang <jiong.wang@arm.com>
* lra-eliminations.c (update_reg_eliminate): Relax gcc_assert for fixed

View File

@ -9822,6 +9822,8 @@ arm_new_rtx_costs (rtx x, enum rtx_code code, enum rtx_code outer_code,
*cost += rtx_cost (XEXP (x, 1), code, 1, speed_p);
return true;
}
else if (speed_p)
*cost += extra_cost->alu.arith;
return false;
}
@ -10057,6 +10059,9 @@ arm_new_rtx_costs (rtx x, enum rtx_code code, enum rtx_code outer_code,
*cost += rtx_cost (XEXP (x, 0), PLUS, 0, speed_p);
return true;
}
else if (speed_p)
*cost += extra_cost->alu.arith;
return false;
}