https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115534
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This might be improved by https://gcc.gnu.org/pipermail/gcc-patches/2024-June/654819.html . Or it might be the case the vectorizer case needs to be improved afterwards. But I think that is the infrastructure for fixing this issue.