https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101105
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:00ab8e994b87693b9e56fa68c3b3ede01425a2c0 commit r11-8653-g00ab8e994b87693b9e56fa68c3b3ede01425a2c0 Author: Richard Biener <rguent...@suse.de> Date: Wed Jun 23 12:43:03 2021 +0200 tree-optimization/101105 - fix runtime alias test optimization We were ignoring DR_STEP for VF == 1 which is OK only in case the scalar order is preserved or both DR steps are the same. 2021-06-23 Richard Biener <rguent...@suse.de> PR tree-optimization/101105 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Only ignore steps when they are equal or scalar order is preserved. * gcc.dg/torture/pr101105.c: New testcase. (cherry picked from commit 50374fdacbd121bc4a61b073e559208ff61bee06)