This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH AArch64]Handle wrong cost for addition of minus immediate in aarch64_rtx_costs.
- From: "Bin.Cheng" <amker dot cheng at gmail dot com>
- To: Bin Cheng <bin dot cheng at arm dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>, Marcus Shawcroft <Marcus dot Shawcroft at arm dot com>, James Greenhalgh <James dot Greenhalgh at arm dot com>
- Date: Wed, 15 Jul 2015 16:22:01 +0800
- Subject: Re: [PATCH AArch64]Handle wrong cost for addition of minus immediate in aarch64_rtx_costs.
- Authentication-results: sourceware.org; auth=none
- References: <000001d0afec$b6f92bb0$24eb8310$ at arm dot com> <CAHFci2_zcm-ZJB05U=gqHn5EqnX32MQe5Q3wztf9wy7hGx6CUQ at mail dot gmail dot com>
Ping^2
On Thu, Jul 9, 2015 at 5:42 PM, Bin.Cheng <amker.cheng@gmail.com> wrote:
> Ping.
>
> On Fri, Jun 26, 2015 at 4:47 PM, Bin Cheng <bin.cheng@arm.com> wrote:
>> Hi,
>> The canonical form of subtract of immediate is (add op0 minus_imm), which is
>> supported with addsi3_aarch64 pattern on aarch64. Unfortunately wrong cost
>> (8 rather than 4) is computed by aarch64_rtx_cost because it doesn't honor
>> the fact that it actually is a sub instruction. This patch fixes it, is
>> this OK?
>>
>> Thanks,
>> bin
>>
>> 2015-06-25 Bin Cheng <bin.cheng@arm.com>
>>
>> * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle addition of
>> minus immediate.