https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128704
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2026-11-16
Status|UNCONFIRMED |NEW
CC| |rdapp at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine. The issue is that the niter versioning condition for vectorizing the
outer loop is not invariant in the outer loop. Caused by
base_address: &a
offset from base address: (ssizetype) i_16
constant offset from base address: 0
step: 1
base alignment: 8
base misalignment: 0
offset alignment: 1
step alignment: 1
base_object: a
nowrap bound: ~(<unnamed-unsigned:3>) i_16
Access function 0: {{0, +, 1}_1, +, 1}_2
t.c:3:21: note: adding no-wrap assumption: (<unnamed-unsigned:3>) i_16 <= 2
t.c:3:21: note: Loop to be versioned with assumption (<unnamed-unsigned:3>)
i_16 <= 2
so it looks those can be problematic for outer loop vectorization which we'd
either need to not do or try to formulate the no-wrap assumption in terms of
the outer loop.