Commit 2533c820 by Kyrylo Tkachov Committed by Kyrylo Tkachov

[AArch64] Use extend_arith rtx cost appropriately

	* config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
	rather than arith_shift cost when costing ADD/MINUS of an
	extended value.

From-SVN: r222623
parent 577cd070
2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
rather than arith_shift cost when costing ADD/MINUS of an
extended value.
2015-04-30 Jan Hubicka <hubicka@ucw.cz> 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
PR lto/65948 PR lto/65948
......
...@@ -5819,7 +5819,7 @@ cost_minus: ...@@ -5819,7 +5819,7 @@ cost_minus:
if (aarch64_rtx_arith_op_extract_p (op1, mode)) if (aarch64_rtx_arith_op_extract_p (op1, mode))
{ {
if (speed) if (speed)
*cost += extra_cost->alu.arith_shift; *cost += extra_cost->alu.extend_arith;
*cost += rtx_cost (XEXP (XEXP (op1, 0), 0), *cost += rtx_cost (XEXP (XEXP (op1, 0), 0),
(enum rtx_code) GET_CODE (op1), (enum rtx_code) GET_CODE (op1),
...@@ -5888,7 +5888,7 @@ cost_plus: ...@@ -5888,7 +5888,7 @@ cost_plus:
if (aarch64_rtx_arith_op_extract_p (op0, mode)) if (aarch64_rtx_arith_op_extract_p (op0, mode))
{ {
if (speed) if (speed)
*cost += extra_cost->alu.arith_shift; *cost += extra_cost->alu.extend_arith;
*cost += rtx_cost (XEXP (XEXP (op0, 0), 0), *cost += rtx_cost (XEXP (XEXP (op0, 0), 0),
(enum rtx_code) GET_CODE (op0), (enum rtx_code) GET_CODE (op0),
......
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