https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120927
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:3b599593af17f61fc8cf26ccf1c7e3fd4e83b221 commit r15-9901-g3b599593af17f61fc8cf26ccf1c7e3fd4e83b221 Author: Richard Biener <rguent...@suse.de> Date: Wed Jul 2 13:44:59 2025 +0200 Do not query further vector epilogues after a masked epilogue When doing --param vect-partial-vector-usage=1 we'd continue querying the target whether it wants more vector epilogues, but when it comes back with a suggestion we then might iterate endlessly. Do not even ask the target when we decided for the last epilogue to be one with partial vectors. PR tree-optimization/120927 * tree-vect-loop.cc (vect_analyze_loop): Stop querying further epilogues after one with partial vectors. (cherry picked from commit 57d30924e2b3887a1aedc6102daa67bc3272ace7)