This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH PR81408]Turn TREE level unsafe loop optimizations warning to missed optimization message
- 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, 18 Jul 2017 10:31:53 +0200
- Subject: Re: [PATCH PR81408]Turn TREE level unsafe loop optimizations warning to missed optimization message
- Authentication-results: sourceware.org; auth=none
- References: <DB5PR0801MB274259DDD82F89F89301BD9FE7A10@DB5PR0801MB2742.eurprd08.prod.outlook.com>
On Tue, Jul 18, 2017 at 10:00 AM, Bin Cheng <Bin.Cheng@arm.com> wrote:
> Hi,
> I removed unsafe loop optimization on TREE level last year, so GCC doesn't do unsafe
> loop optimizations on TREE now. All "unsafe loop optimizations" warnings reported by
> TREE optimizers are simply missed optimizations. This patch turns such warning into
> missed optimization messages. I didn't change when this will be dumped, for now it is
> when called from ivopts.
> Bootstrap and test on x86_64 and AArch64. Is it OK?
Ok but can you change the testcase to not scan the ivopts dump but use
-fopt-info-loop-missed?
You should be able to match the output with dg-message.
Thanks,
Richard.
> Thanks,
> bin
> 2017-07-13 Bin Cheng <bin.cheng@arm.com>
>
> PR target/81408
> * tree-ssa-loop-niter.c (number_of_iterations_exit): Dump missed
> optimization for loop niter analysis.
>
> gcc/testsuite/ChangeLog
> 2017-07-13 Bin Cheng <bin.cheng@arm.com>
>
> PR target/81408
> * g++.dg/tree-ssa/pr81408.C: New.
> * gcc.dg/tree-ssa/pr19210-1.c: Check dump message rather than warning.