https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121059
--- Comment #19 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:234f122a9be5cc2a30d2a9e94c2fc9cde1d5a64d commit r14-12082-g234f122a9be5cc2a30d2a9e94c2fc9cde1d5a64d Author: Richard Biener <[email protected]> Date: Mon Jul 14 14:09:28 2025 +0200 tree-optimization/121059 - fixup loop mask query When we opportunistically mask an operand of a AND with an already available loop mask we need to query that set with the correct number of masks we expect. PR tree-optimization/121059 * tree-vect-stmts.cc (vectorizable_operation): Query scalar_cond_masked_set with the correct number of masks. * gcc.dg/vect/pr121059.c: New testcase. Co-Authored-By: Richard Sandiford <[email protected]> (cherry picked from commit 71be87055548cf942c7bc56d10ffd479db8569e4)
