https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108320
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- valarray is specifically designed to allow these kind of optimizations really.
pinskia at gcc dot gnu.org via Gcc-bugs Fri, 06 Jan 2023 13:59:52 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108320
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- valarray is specifically designed to allow these kind of optimizations really.