https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122370
--- 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:065b4476c8611549a07cae58786b844ae5763eaf commit r16-4555-g065b4476c8611549a07cae58786b844ae5763eaf Author: Richard Biener <[email protected]> Date: Wed Oct 22 10:05:01 2025 +0200 tree-optimization/122370 - ICE with reduction and masks The following fixes bad interaction with mask demotion to data and the code dealing with UB on signed reductions by making sure to also update compute_vectype when updating vectype. PR tree-optimization/122370 * tree-vect-loop.cc (vect_create_epilog_for_reduction): Also update compute_vectype when demoting masks to an integer vector. * gcc.dg/vect/vect-pr122370.c: New testcase.
