Re: [PATCH GCC][12/13]Workaround reduction statements for distribution

2017-06-23 Thread Richard Biener
On Fri, Jun 23, 2017 at 12:26 PM, Bin.Cheng wrote: > On Tue, Jun 20, 2017 at 12:36 PM, Richard Biener > wrote: >> On Tue, Jun 20, 2017 at 11:20 AM, Bin.Cheng wrote: >>> On Fri, Jun 16, 2017 at 6:15 PM, Bin.Cheng wrote: On Fri, Jun 16, 2017 at 11:21 AM, Richard Biener wrote: > On

Re: [PATCH GCC][12/13]Workaround reduction statements for distribution

2017-06-23 Thread Bin.Cheng
On Tue, Jun 20, 2017 at 12:36 PM, Richard Biener wrote: > On Tue, Jun 20, 2017 at 11:20 AM, Bin.Cheng wrote: >> On Fri, Jun 16, 2017 at 6:15 PM, Bin.Cheng wrote: >>> On Fri, Jun 16, 2017 at 11:21 AM, Richard Biener >>> wrote: On Mon, Jun 12, 2017 at 7:03 PM, Bin Cheng wrote: > Hi, >>>

Re: [PATCH GCC][12/13]Workaround reduction statements for distribution

2017-06-20 Thread Richard Biener
On Tue, Jun 20, 2017 at 11:20 AM, Bin.Cheng wrote: > On Fri, Jun 16, 2017 at 6:15 PM, Bin.Cheng wrote: >> On Fri, Jun 16, 2017 at 11:21 AM, Richard Biener >> wrote: >>> On Mon, Jun 12, 2017 at 7:03 PM, Bin Cheng wrote: Hi, For now, loop distribution handles variables used outside of l

Re: [PATCH GCC][12/13]Workaround reduction statements for distribution

2017-06-20 Thread Bin.Cheng
On Fri, Jun 16, 2017 at 6:15 PM, Bin.Cheng wrote: > On Fri, Jun 16, 2017 at 11:21 AM, Richard Biener > wrote: >> On Mon, Jun 12, 2017 at 7:03 PM, Bin Cheng wrote: >>> Hi, >>> For now, loop distribution handles variables used outside of loop as >>> reduction. >>> This is inaccurate because all p

Re: [PATCH GCC][12/13]Workaround reduction statements for distribution

2017-06-16 Thread Bin.Cheng
On Fri, Jun 16, 2017 at 11:21 AM, Richard Biener wrote: > On Mon, Jun 12, 2017 at 7:03 PM, Bin Cheng wrote: >> Hi, >> For now, loop distribution handles variables used outside of loop as >> reduction. >> This is inaccurate because all partitions contain statement defining >> induction >> vars.

Re: [PATCH GCC][12/13]Workaround reduction statements for distribution

2017-06-16 Thread Richard Biener
On Mon, Jun 12, 2017 at 7:03 PM, Bin Cheng wrote: > Hi, > For now, loop distribution handles variables used outside of loop as > reduction. > This is inaccurate because all partitions contain statement defining induction > vars. But final induction values are usually not used outside of the loop

[PATCH GCC][12/13]Workaround reduction statements for distribution

2017-06-12 Thread Bin Cheng
Hi, For now, loop distribution handles variables used outside of loop as reduction. This is inaccurate because all partitions contain statement defining induction vars. Ideally we should factor out scev-propagation as a standalone interface which can be called when necessary. Before that, this pa