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: [lno] [patch] vectorizer update - loop bound


Toon Moene <toon@moene.indiv.nluug.nl> writes:

> Dorit Naishlos wrote:
> 
> > The patch below implements a more general loop bound transformation scheme
> > - still limited to known loop bound that divides by the vectorization
> > factor, but no longer dependent on the loop IV eolution and the loop exit
> > condition form.  This allows relaxing the restrictions that the vectorizer
> > imposed on the loop exit condition, and use the precomputed
> > loop->nb_iterations instead (from the monev analyzer). As a result, two of
> > the loops in the test case tree-ssa-vect-none.c (#12 and #13) are now
> > vectorizable, and are therefore moved to tree-ssa-vect-all.c.
> 
> Still ...
> 
> No vector, no cry:
> 
> $ cat vector.f95
> DIMENSION A(1000000), B(1000000), C(1000000)
> READ*, X, Y
> A = LOG(X); B = LOG(Y); C = A + B
> PRINT*, C(500000)
> END

My f95-fu is weak, but doesn't this make 'A' an array of double?
Does your processor actually have double vector operations?

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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