Dorit wrote: It looks like maybe a 64bit scalar-evolution issue - when I compile on powerpc-linux with -m64, I also get the "vect4.f:4: note: not consecutive access" message. This problem looks very similar to PR18403 which has been resolved a while ago: ... When compiling for 64bit, there is an extra cast: In the 64bit case however, the vectorizer dumps show that the access-function returned for the index to array b is much more compilcated - the dataref analyzer doesn't seem to be able to extract the evolution/step in this case, and concludes that the access is non-consecutive: ...
Ah yes, this was a well-known issue in the days long before vectorization ... In 1997, Richard Henderson hacked g77 to generate 64-bit array indices on 64-bit machines to prevent these casts, which inhibited all sorts of run-of-the-mill induction variable analysis ... This is probably quite invasive. Cheers, -- Toon Moene - e-mail: [EMAIL PROTECTED] - phone: +31 346 214290 Saturnushof 14, 3738 XG Maartensdijk, The Netherlands A maintainer of GNU Fortran 95: http://gcc.gnu.org/fortran/