This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Simplify ptr - 0
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Marc Glisse <marc dot glisse at inria dot fr>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 23 Nov 2017 13:39:36 +0100
- Subject: Re: Simplify ptr - 0
- Authentication-results: sourceware.org; auth=none
- References: <alpine.DEB.2.02.1711221809380.11945@stedding.saclay.inria.fr>
On Wed, Nov 22, 2017 at 6:34 PM, Marc Glisse <marc.glisse@inria.fr> wrote:
> Hello,
>
> I hadn't implemented this simplification because I think it is invalid code,
> but apparently people do write it, so we might as well handle it sensibly.
> This also happens to work around PR 83104 (already fixed).
>
> bootstrap+regtest on powerpc64le-unknown-linux-gnu.
Ok.
What about 0 - ptr? (ok, that's even more weird)
Richard.
> 2017-11-22 Marc Glisse <marc.glisse@inria.fr>
>
> * match.pd (ptr-0): New transformation.
>
> --
> Marc Glisse