https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103029
--- Comment #6 from CVS 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:164bbf701ff10ff44e272525e8f462ed3ff1cf43 commit r12-4850-g164bbf701ff10ff44e272525e8f462ed3ff1cf43 Author: Richard Biener <rguent...@suse.de> Date: Tue Nov 2 18:47:14 2021 +0100 tree-optimization/103029 - ensure vect loop versioning constraint on PHIs PHI nodes in vectorizer loop versioning need to maintain the same order of PHI arguments to not disturb SLP discovery. The following adds an assertion and mitigation in case loop versioning breaks this which happens more often after the recent reorg. 2021-11-02 Richard Biener <rguent...@suse.de> PR tree-optimization/103029 * tree-vect-loop-manip.c (vect_loop_versioning): Ensure the PHI nodes in the loop maintain their original operand order.