https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125547
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2026-06-02
Status|UNCONFIRMED |NEW
Severity|normal |enhancement
Keywords| |missed-optimization
--- Comment #2 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
Note LLVM code generation is not exactly optimized either.
There is a call to plus_op followed by a vector add followed by a scalar add,
followed by a call to _M_manager in the inner most loop.