https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123755
--- Comment #15 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:36fd961ba739f0bb3c4ec664c569f77635036ff8 commit r16-7233-g36fd961ba739f0bb3c4ec664c569f77635036ff8 Author: Richard Biener <[email protected]> Date: Fri Jan 30 08:19:06 2026 +0100 tree-optimization/123755 - more (len-)masked call fixes The testcase shows that we end up with (len-)masking a call even when not semantically necessary. The following aligns the condition to apply len-masking with the condition to apply loop-masking, adjusting downstream conditions to look at the chosen ifn instead of replicating a possibly complex decision. PR tree-optimization/123755 * tree-vect-stmts.cc (vectorizable_call): Adjust len-masking condition. Simplify code generation. * gcc.dg/vect/vect-pr123755-2.c: New testcase.
