https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117147
--- Comment #6 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:8af474aa5d5efdda7def6cdcec3f246df2c7026a commit r15-4349-g8af474aa5d5efdda7def6cdcec3f246df2c7026a Author: Richard Biener <rguent...@suse.de> Date: Tue Oct 15 09:22:09 2024 +0200 tree-optimization/117147 - bogus re-use of previous ldst_p The following shows that in vect_build_slp_tree_1 we're eventually re-using the previous lane set ldst_p flag. Fixed by some refactoring. PR tree-optimization/117147 * tree-vect-slp.cc (vect_build_slp_tree_1): Put vars and initialization of per-lane data into the per-lane processing loop to avoid re-using previous lane state.