diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2015-07-10 12:39:23 +0200 |
---|---|---|
committer | Linaro Code Review <review@review.linaro.org> | 2015-08-21 14:56:43 +0000 |
commit | 00df6a351529f5cdb386ace2b803b864292d445e (patch) | |
tree | 9f5815f539396ff9a93d23014a78f2afd5014314 | |
parent | f3152f1d12b0f0a904359fdc8148fadfb3143406 (diff) |
gcc/
Backport from trunk r222623.
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.
Change-Id: Ia7e78a9538771e242826fec35358ece5325f8079
-rw-r--r-- | gcc/config/aarch64/aarch64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 327a582a2f4..53d99b6280d 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -5818,7 +5818,7 @@ cost_minus: if (aarch64_rtx_arith_op_extract_p (op1, mode)) { if (speed) - *cost += extra_cost->alu.arith_shift; + *cost += extra_cost->alu.extend_arith; *cost += rtx_cost (XEXP (XEXP (op1, 0), 0), (enum rtx_code) GET_CODE (op1), @@ -5887,7 +5887,7 @@ cost_plus: if (aarch64_rtx_arith_op_extract_p (op0, mode)) { if (speed) - *cost += extra_cost->alu.arith_shift; + *cost += extra_cost->alu.extend_arith; *cost += rtx_cost (XEXP (XEXP (op0, 0), 0), (enum rtx_code) GET_CODE (op0), |