------- Comment #33 from burnus at gcc dot gnu dot org 2009-07-26 09:50 ------- (In reply to comment #32) > > Regarding the just committed inline version: It would be interesting to know > > whether it is vectorizable (with/without -ffinite-math-only [i.e. > > -ffast-math]). > > It depends on where it is inlined. It has to be vectorized in outer loop (see > my previous comment), so it needs another loop around it.
Using the example from comment 23 with a) gfortran -O3 -ffast-math -march=native -ftree-vectorize -ftree-vectorizer-verbose=5 b) ifort -O3 -xHost -diag-enable all ifort shows: test.f90(12): (col. 9) remark: LOOP WAS VECTORIZED. and needs 1.476s. gfortran shows: test.f90:12: note: not vectorized: unsupported use in stmt. and needs 2.272s. (By comparison. 4.4 needs 3.688s.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31067