[AArch64] Properly handle SHIFT ops and EXTEND in aarch64_rtx_mult_cost
commit4ab3c0df126e3bc321bef68b6fccf0af3f372550
authorktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Apr 2015 13:34:05 +0000 (30 13:34 +0000)
committerktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Apr 2015 13:34:05 +0000 (30 13:34 +0000)
tree32aafdada8cb8ae28ef857d173de0ae642934a86
parentf6935cdd414d1916e2539f2cd108618017d88b19
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222624 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/aarch64/aarch64.c