Re: [PATCH PR82163]Rewrite loop into lcssa form instantly

2017-09-18 Thread Richard Biener
On Fri, Sep 15, 2017 at 3:04 PM, Bin.Cheng wrote: > On Fri, Sep 15, 2017 at 12:49 PM, Richard Biener > wrote: >> On Thu, Sep 14, 2017 at 5:02 PM, Bin Cheng wrote: >>> Hi, >>> Current pcom implementation rewrites into lcssa form after all loops are >>> transformed, this is >>> not enough because

Re: [PATCH PR82163]Rewrite loop into lcssa form instantly

2017-09-15 Thread Bin.Cheng
On Fri, Sep 15, 2017 at 12:49 PM, Richard Biener wrote: > On Thu, Sep 14, 2017 at 5:02 PM, Bin Cheng wrote: >> Hi, >> Current pcom implementation rewrites into lcssa form after all loops are >> transformed, this is >> not enough because unrolling of later loop checks lcssa form in function >> t

Re: [PATCH PR82163]Rewrite loop into lcssa form instantly

2017-09-15 Thread Richard Biener
On Thu, Sep 14, 2017 at 5:02 PM, Bin Cheng wrote: > Hi, > Current pcom implementation rewrites into lcssa form after all loops are > transformed, this is > not enough because unrolling of later loop checks lcssa form in function > tree_transform_and_unroll_loop. > This simple patch rewrites loop

[PATCH PR82163]Rewrite loop into lcssa form instantly

2017-09-14 Thread Bin Cheng
Hi, Current pcom implementation rewrites into lcssa form after all loops are transformed, this is not enough because unrolling of later loop checks lcssa form in function tree_transform_and_unroll_loop. This simple patch rewrites loop into lcssa form if store-store chain is handled. I think it