https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123755
--- Comment #8 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:dd38fa87afc8a9bb17af0121282dade697111f4d commit r16-7039-gdd38fa87afc8a9bb17af0121282dade697111f4d Author: Richard Biener <[email protected]> Date: Mon Jan 26 08:57:45 2026 +0100 tree-optimization/123755 - fix LEN-masking of trapping calls There's multiple issues with properly handling len-masking of calls that might trap. Similar to get_conditional_internal_fn, get_len_internal_fn expects a COND_* argument only. When the original call is not already masked computation and code-gen fails to add mask and else arguments. This fixes gcc.target/riscv/rvv/autovec/reduc/reduc_call-5.c PR tree-optimization/123755 * tree-vect-stmts.cc (vectorizable_call): Fixup LEN masking of unconditional but possibly trapping calls.
