Re: [PATCH GCC][4/4]Better handle store-stores chain if eliminated stores only store loop invariant

2017-07-28 Thread Bin.Cheng
On Tue, Jul 25, 2017 at 12:48 PM, Richard Biener wrote: > On Mon, Jul 10, 2017 at 10:24 AM, Bin.Cheng wrote: >> On Tue, Jun 27, 2017 at 11:49 AM, Bin Cheng wrote: >>> Hi, >>> This is a followup patch better handling below case: >>> for (i = 0; i < n; i++) >>>{ >>> a[i] = 1;

Re: [PATCH GCC][4/4]Better handle store-stores chain if eliminated stores only store loop invariant

2017-07-25 Thread Bin.Cheng
On Tue, Jul 25, 2017 at 1:57 PM, Richard Biener wrote: > On Tue, Jul 25, 2017 at 2:38 PM, Bin.Cheng wrote: >> On Tue, Jul 25, 2017 at 12:48 PM, Richard Biener >> wrote: >>> On Mon, Jul 10, 2017 at 10:24 AM, Bin.Cheng wrote: On Tue, Jun 27, 2017 at 11:49 AM, Bin Cheng wrote: > Hi,

Re: [PATCH GCC][4/4]Better handle store-stores chain if eliminated stores only store loop invariant

2017-07-25 Thread Richard Biener
On Tue, Jul 25, 2017 at 2:38 PM, Bin.Cheng wrote: > On Tue, Jul 25, 2017 at 12:48 PM, Richard Biener > wrote: >> On Mon, Jul 10, 2017 at 10:24 AM, Bin.Cheng wrote: >>> On Tue, Jun 27, 2017 at 11:49 AM, Bin Cheng wrote: Hi, This is a followup patch better handling below case:

Re: [PATCH GCC][4/4]Better handle store-stores chain if eliminated stores only store loop invariant

2017-07-25 Thread Bin.Cheng
On Tue, Jul 25, 2017 at 12:48 PM, Richard Biener wrote: > On Mon, Jul 10, 2017 at 10:24 AM, Bin.Cheng wrote: >> On Tue, Jun 27, 2017 at 11:49 AM, Bin Cheng wrote: >>> Hi, >>> This is a followup patch better handling below case: >>> for (i = 0; i < n; i++) >>>{ >>> a[i] = 1;

Re: [PATCH GCC][4/4]Better handle store-stores chain if eliminated stores only store loop invariant

2017-07-25 Thread Richard Biener
On Mon, Jul 10, 2017 at 10:24 AM, Bin.Cheng wrote: > On Tue, Jun 27, 2017 at 11:49 AM, Bin Cheng wrote: >> Hi, >> This is a followup patch better handling below case: >> for (i = 0; i < n; i++) >>{ >> a[i] = 1; >> a[i+2] = 2; >>} >> Instead of generating roo

Re: [PATCH GCC][4/4]Better handle store-stores chain if eliminated stores only store loop invariant

2017-07-10 Thread Bin.Cheng
On Tue, Jun 27, 2017 at 11:49 AM, Bin Cheng wrote: > Hi, > This is a followup patch better handling below case: > for (i = 0; i < n; i++) >{ > a[i] = 1; > a[i+2] = 2; >} > Instead of generating root variables by loading from memory and propagating > with PHI

[PATCH GCC][4/4]Better handle store-stores chain if eliminated stores only store loop invariant

2017-06-27 Thread Bin Cheng
Hi, This is a followup patch better handling below case: for (i = 0; i < n; i++) { a[i] = 1; a[i+2] = 2; } Instead of generating root variables by loading from memory and propagating with PHI nodes, like: t0 = a[0]; t1 = a[1]; for (i = 0; i < n;