https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118297
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- for aarch64 /app/example.cpp:16:8: note: Cost model analysis for part in loop 2: Vector cost: 47 Scalar cost: 42 /app/example.cpp:16:8: missed: not vectorized: vectorization is not profitable. For x86_64: /app/example.cpp:16:8: note: Cost model analysis for part in loop 2: Vector cost: 304 Scalar cost: 504