https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118028

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unknown                     |15.0

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
We're usually handling this as a double-reduction, aka vectorizing the outer
loop.  But

t.c:6:5: note:   Analyze phi: sum_20 = PHI <sum_14(8), sum_23(5)>
t.c:6:5: note:   reduction path: sum_14 sum_20 
t.c:6:5: note:   reduction: detected reduction
t.c:6:5: note:   Detected vectorizable nested cycle.

and

t.c:6:5: note:   grouped access in outer loop.
t.c:6:5: missed:   not vectorized: complicated access pattern.
t.c:10:21: missed:   not vectorized: complicated access pattern.
t.c:6:5: missed:  bad data access.

so there's work to be done to enable outer loop vectorization for this.

Reply via email to