This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][AArch64] Properly cost MNEG/[SU]MNEGL patterns
- From: Marcus Shawcroft <marcus dot shawcroft at gmail dot com>
- To: Kyrill Tkachov <kyrylo dot tkachov at arm dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Marcus Shawcroft <marcus dot shawcroft at arm dot com>, Richard Earnshaw <Richard dot Earnshaw at arm dot com>, James Greenhalgh <james dot greenhalgh at arm dot com>
- Date: Thu, 30 Apr 2015 13:10:27 +0100
- Subject: Re: [PATCH][AArch64] Properly cost MNEG/[SU]MNEGL patterns
- Authentication-results: sourceware.org; auth=none
- References: <55352B0D dot 3070005 at arm dot com>
On 20 April 2015 at 17:36, Kyrill Tkachov <kyrylo.tkachov@arm.com> wrote:
> Hi all,
>
> Currently we do not handle the MNEG patterns properly in rtx costs.
> These instructions are similar to the MSUB ones.
> This patch handles them by catching the NEG at the appropriate position,
> extracting its operands and letting the rest of the aarch64_rtx_mult_cost
> function
> handle the additional costs.
>
> Tested on aarch64-none-elf.
>
> Ok trunk?
>
> Thanks,
> Kyrill
>
> N.B.
> This patches' context depends on:
> https://gcc.gnu.org/ml/gcc-patches/2015-04/msg01049.html
>
> 2015-04-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
>
> * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
> and [SU]MNEGL patterns.
OK /Marcus