Re: [PATCH PR63530] Fix the pointer alignment in vectorization

2014-10-22 Thread Carrot Wei
Thanks for the review. Following patch has been committed. I will port them to 4.9 branch several days later. 2014-10-22 Guozhi Wei PR tree-optimization/63530 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set pointer alignment according to DR_MISALIGNMEN

Re: [PATCH PR63530] Fix the pointer alignment in vectorization

2014-10-21 Thread Richard Biener
On Mon, Oct 20, 2014 at 10:10 PM, Carrot Wei wrote: > Hi Richard > > An arm testcase that can reproduce this bug is attached. > > 2014-10-20 Guozhi Wei > > PR tree-optimization/63530 > gcc.target/arm/pr63530.c: New testcase. > > > Index: pr63530.c > =

Re: [PATCH PR63530] Fix the pointer alignment in vectorization

2014-10-20 Thread Carrot Wei
Hi Richard An arm testcase that can reproduce this bug is attached. 2014-10-20 Guozhi Wei PR tree-optimization/63530 gcc.target/arm/pr63530.c: New testcase. Index: pr63530.c === --- pr63530.c (revision 0) +++ pr

Re: [PATCH PR63530] Fix the pointer alignment in vectorization

2014-10-20 Thread Richard Biener
On Fri, Oct 17, 2014 at 7:58 PM, Carrot Wei wrote: > Hi > > In current vectorization pass, when a new vector pointer is created, > its alignment is not set correctly. We should use DR_MISALIGNMENT (dr) > since only this alignment is adjusted when loop peeling or multi > version is occurred. > > Th

[PATCH PR63530] Fix the pointer alignment in vectorization

2014-10-17 Thread Carrot Wei
Hi In current vectorization pass, when a new vector pointer is created, its alignment is not set correctly. We should use DR_MISALIGNMENT (dr) since only this alignment is adjusted when loop peeling or multi version is occurred. This patch passed following tests: x86_64 bootstrap. x86_64 regressi