This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [ABSU_EXPR] Add some of the missing patterns in match,pd
- From: Jeff Law <law at redhat dot com>
- To: Kugan Vivekanandarajah <kugan dot vivekanandarajah at linaro dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 27 Jun 2018 21:54:04 -0600
- Subject: Re: [ABSU_EXPR] Add some of the missing patterns in match,pd
- References: <CAELXzTP2ZZPEt_qL2Y4_LcwGrPA9-crDyDFHx0oi1g2iCUfeDg@mail.gmail.com>
On 06/27/2018 06:25 PM, Kugan Vivekanandarajah wrote:
> Hi,
>
> This patch adds some of the missing patterns in match.pd for ABSU_EXPR.
>
> Bootstrap and regression testing on x86_64-linux-gnu. Is this OK if no
> regressions.
>
> Thanks,
> Kugan
>
> gcc/ChangeLog:
>
> 2018-06-28 Kugan Vivekanandarajah <kuganv@linaro.org>
>
> * match.pd (absu(x)*absu(x) -> x*x): Handle.
> (absu(absu(X)) -> absu(X)): Likewise.
> (absu(-X) -> absu(X)): Likewise.
> (absu(X) where X is nonnegative -> X): Likewise.
>
OK once testing is complete.
Thanks,
jeff