https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127975
--- Comment #5 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:0f7c27bb0d9c1a7346fc273615c0a103e1f6f8cf commit r17-5453-g0f7c27bb0d9c1a7346fc273615c0a103e1f6f8cf Author: Richard Biener <[email protected]> Date: Wed Oct 21 07:51:24 2026 +0200 tree-optimization/127975 - handle missing vector mask type for simd clones When attempting to vectorize a loop with partial vector usage and a masked simd clone with scalar integer mask mode, get_related_vectype_for_scalar_type can return NULL_TREE if the target does not support a vector mode with the required number of elements (such as V2SF on 32-bit x86). Verify that a valid mask type was found and disable partial vectors if not, rather than passing a NULL vectype to vect_record_loop_mask and crashing in hash-set.h. Also assert in vect_record_loop_mask that vectype is non-null. PR tree-optimization/127975 * tree-vect-stmts.cc (vectorizable_simd_clone_call): Disable partial vectors if get_related_vectype_for_scalar_type returns NULL_TREE for the mask.
