This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH PR81620]Don't set has_max_use_after flag for store-store chain
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Bin Cheng <Bin dot Cheng at arm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, nd <nd at arm dot com>
- Date: Tue, 1 Aug 2017 10:47:18 +0200
- Subject: Re: [PATCH PR81620]Don't set has_max_use_after flag for store-store chain
- Authentication-results: sourceware.org; auth=none
- References: <DB5PR0801MB2742244A4E7D306A9B49826DE7B20@DB5PR0801MB2742.eurprd08.prod.outlook.com>
On Mon, Jul 31, 2017 at 4:12 PM, Bin Cheng <Bin.Cheng@arm.com> wrote:
> Hi,
> This simple patch fixes the ICE by not setting has_max_use_after flag for
> store-store chain because there is no use at all.
> Bootstrap and test on x86_64 and AArch64 ongoing. Is it OK if no failure?
Ok.
Richard.
> Thanks,
> bin
> 2017-07-31 Bin Cheng <bin.cheng@arm.com>
>
> PR tree-optimization/81620
> * tree-predcom.c (add_ref_to_chain): Don't set has_max_use_after
> for store-store chain.
>
> gcc/testsuite/ChangeLog
> 2017-07-31 Bin Cheng <bin.cheng@arm.com>
>
> PR tree-optimization/81620
> * gcc.dg/tree-ssa/pr81620-1.c: New.
> * gcc.dg/tree-ssa/pr81620-2.c: New.