https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113026
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:c22cf7a7a77bf9245bd0790b21695440208c3aa5 commit r14-7039-gc22cf7a7a77bf9245bd0790b21695440208c3aa5 Author: Richard Biener <rguent...@suse.de> Date: Tue Jan 9 11:49:50 2024 +0100 tree-optimization/113026 - fix vector epilogue maximum iter bound The late amendment with a limit based on VF was redundant and wrong for peeled early exits. The following moves the adjustment done when we don't have a skip edge down to the place where the already existing VF based max iter check is done and removes the amendment. PR tree-optimization/113026 * tree-vect-loop-manip.cc (vect_do_peeling): Remove redundant and wrong niter bound setting. Move niter bound adjustment down.