https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128714
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:1c8a4ea630bfbf15a0b2f41a970c09fb38e68fdc commit r17-6636-g1c8a4ea630bfbf15a0b2f41a970c09fb38e68fdc Author: Richard Biener <[email protected]> Date: Tue Nov 24 16:03:09 2026 +0100 tree-optimization/128714 - avoid wrong restrict info on vectorized refs The following makes sure to compare restrict info on a DR group before copying it to a vector ref. We should probably compute such properties upfront, but this is consistent with how we handle TBAA info and also suitable for backporting. PR tree-optimization/128714 * tree-vectorizer.h (vect_copy_ref_info): Take stmt_vec_info as source. * tree-vect-data-refs.cc (vect_copy_ref_info): Likewise. Before copying restrict info verify it is consistent across a group. (vect_setup_realignment): Adjust. * tree-vect-stmts.cc (vectorizable_scan_store): Likewise. (vectorizable_load): Likewise. (vectorizable_store): Likewise. * gcc.dg/vect/bb-slp-pr128714.c: New testcase.
