[AArch64] Properly handle SHIFT ops and EXTEND in aarch64_rtx_mult_cost
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Thu, 30 Apr 2015 13:34:05 +0000 (13:34 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 30 Apr 2015 13:34:05 +0000 (13:34 +0000)
commit0a78ebe4c7814b10f12e2d2ee67235fd83f94621
tree32aafdada8cb8ae28ef857d173de0ae642934a86
parent2533c820b3622de5982a3e079763395c5bef38c4
[AArch64] Properly handle SHIFT ops and EXTEND in aarch64_rtx_mult_cost

* config/aarch64/aarch64.c (aarch64_shift_p): New function.
(aarch64_rtx_mult_cost): Update comment to reflect that it also handles
combined arithmetic-shift ops.  Properly handle all shift and extend
operations that can occur in combination with PLUS/MINUS.
Rename maybe_fma to compound_p.
(aarch64_rtx_costs): Use aarch64_shift_p when costing compound
arithmetic and shift operations.

From-SVN: r222624
gcc/ChangeLog
gcc/config/aarch64/aarch64.c