Re: [PATCH] Yet another simple fix to enhance outer-loop vectorization.

2015-07-14 Thread Richard Biener
On Wed, Jun 17, 2015 at 6:35 PM, Yuri Rumyantsev wrote: > Richard, > > I attached updated patch. > You asked me to explain why I did changes for renaming. > If we do not change PHI arguments for inner loop header we can get the > following IR: > source outer loop: > : outer-loop header > # i_4

Re: [PATCH] Yet another simple fix to enhance outer-loop vectorization.

2015-07-14 Thread Richard Biener
On Mon, Jun 29, 2015 at 6:15 PM, Yuri Rumyantsev wrote: > Hi All, > > Here is updated patch containing missed change in > slpeel_tree_peel_loop_to_edge which prevents renaming of exit PHI uses > in inner loop. Ok. Thanks, Richard. > ChangeLog: > 2015-06-29 Yuri Rumyantsev > > * tree-vect-loo

Re: [PATCH] Yet another simple fix to enhance outer-loop vectorization.

2015-06-29 Thread Yuri Rumyantsev
Hi All, Here is updated patch containing missed change in slpeel_tree_peel_loop_to_edge which prevents renaming of exit PHI uses in inner loop. ChangeLog: 2015-06-29 Yuri Rumyantsev * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument to allow renaming of PHI arguments on edges inc

Re: [PATCH] Yet another simple fix to enhance outer-loop vectorization.

2015-06-17 Thread Yuri Rumyantsev
Richard, I attached updated patch. You asked me to explain why I did changes for renaming. If we do not change PHI arguments for inner loop header we can get the following IR: source outer loop: : outer-loop header # i_45 = PHI <0(4), i_18(9)> # .MEM_17 = PHI <.MEM_4(D)(4), .MEM_44(9)> :i

Re: [PATCH] Yet another simple fix to enhance outer-loop vectorization.

2015-06-17 Thread Richard Biener
On Tue, Jun 16, 2015 at 4:12 PM, Yuri Rumyantsev wrote: > Thanks a lot Richard for your review. > > I presented updated patch which is not gated by force_vectorize. > I added test on outer-loop in vect_enhance_data_refs_alignment > and it returns false for it because we can not improve dr alighmen

Re: [PATCH] Yet another simple fix to enhance outer-loop vectorization.

2015-06-16 Thread Yuri Rumyantsev
Thanks a lot Richard for your review. I presented updated patch which is not gated by force_vectorize. I added test on outer-loop in vect_enhance_data_refs_alignment and it returns false for it because we can not improve dr alighment through outer-loop peeling in general. So I assume that only ver

Re: [PATCH] Yet another simple fix to enhance outer-loop vectorization.

2015-06-09 Thread Richard Biener
On Mon, Jun 8, 2015 at 12:27 PM, Yuri Rumyantsev wrote: > Hi All, > > Here is a simple fix which allows duplication of outer loops to > perform peeling for number of iterations if outer loop is marked with > pragma omp simd. > > Bootstrap and regression testing did not show any new failures. > Is