[AArch64] Use extend_arith rtx cost appropriately
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Thu, 30 Apr 2015 13:30:49 +0000 (13:30 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 30 Apr 2015 13:30:49 +0000 (13:30 +0000)
* 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

gcc/ChangeLog
gcc/config/aarch64/aarch64.c

index 734058e406439155cd6c242975faf034a45fa60a..263f6ac70320e0be88464883aa50880053d19506 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        PR lto/65948
index b8a91dc8fe58df04a6a7b41f3b57dd2dc406cec0..df76267a32b0132989a88fb69208f81f59483eb6 100644 (file)
@@ -5819,7 +5819,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),
@@ -5888,7 +5888,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),