This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix the vectorization part of PR tree-optimization/32377


On 9/12/07, Ira Rosen <IRAR@il.ibm.com> wrote:
>
> With Sebastian's patch
> http://gcc.gnu.org/ml/gcc-patches/2007-07/msg00330.html we are now able to
> distinguish between positive and negative dependence distance.
>
> In this loop the distance is 1 (positive) and the loop is not vectorizable:
>
>   for (i = 0; i < N; i++){
>     ia[i+1] = ia[i] * 4;
>   }
>
> Here the dependence distance is negative (-1) and the loop is vectorizable:
>
>   for (i = 0; i < N; i++){
>     ia[i] = ia[i+1] * 4;
>   }
>
> This patch takes the value of DDR_REVERSED_P into account to decide whether
> the distance is negative or positive.
>
> This patch still doesn't make the loop in the PR to get vectorized due to
> another problem:
> the analysis now fails with "affine-affine test failed: missing iteration
> counts". (See PR 32377 for more details).
>
> Testcases are attached.
> Bootstrapped with vectorization enabled and regtested on x86_64-linux.
> O.K. for mainline?

This is ok.

Thanks,
Richard.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]