Re: [PATCH PR89487]Avoid taking address of register variable in loop list

2019-03-04 Thread Jakub Jelinek
On Mon, Mar 04, 2019 at 05:33:41AM -0800, H.J. Lu wrote: > > > PR tree-optimization/89487 > > > * gcc/testsuite/gcc.dg/tree-ssa/pr89487.c: New test. > > gcc.dg/tree-ssa/pr89487.c: > > /* { dg-do compile } */ > /* { dg-options "-O2 -ftree-loop-distribution" } */ > > void > caml_in

Re: [PATCH PR89487]Avoid taking address of register variable in loop list

2019-03-04 Thread H.J. Lu
On Fri, Mar 1, 2019 at 4:44 AM Richard Biener wrote: > > On Fri, Mar 1, 2019 at 7:54 AM bin.cheng wrote: > > > > Hi, > > This patch fixes PR89487 by following comments in PR. It simply avoid > > checking runtime > > alias by versioning in loop distribution if address of register variable > > m

Re: [PATCH PR89487]Avoid taking address of register variable in loop list

2019-03-01 Thread Richard Biener
On Fri, Mar 1, 2019 at 7:54 AM bin.cheng wrote: > > Hi, > This patch fixes PR89487 by following comments in PR. It simply avoid > checking runtime > alias by versioning in loop distribution if address of register variable may > need to be taken. > > One thing I am not sure is if we should avoid

[PATCH PR89487]Avoid taking address of register variable in loop list

2019-02-28 Thread bin.cheng
Hi, This patch fixes PR89487 by following comments in PR. It simply avoid checking runtime alias by versioning in loop distribution if address of register variable may need to be taken. One thing I am not sure is if we should avoid generating data reference in the first place: Creating dr for