https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101636
--- Comment #16 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:6e80c4f1ad9046b0a7c105660cc7b3dcae0fdb8f commit r12-7359-g6e80c4f1ad9046b0a7c105660cc7b3dcae0fdb8f Author: Richard Biener <rguent...@suse.de> Date: Wed Feb 23 11:15:38 2022 +0100 tree-optimization/101636 - CTOR vectorization ICE The following fixes an ICE when vectorizing the defs of a CTOR results in a different vector type than expected. That can happen with AARCH64 SVE and a fixed vector length as noted in r10-5979 and on x86 with AVX512 mask CTORs and trying to re-vectorize using SSE as shown in this bug. The fix is simply to reject the vectorization when it didn't produce the desired type. 2022-02-23 Richard Biener <rguent...@suse.de> PR tree-optimization/101636 * tree-vect-slp.cc (vect_print_slp_tree): Dump the vector type of the node. (vect_slp_analyze_operations): Make sure the CTOR is vectorized with an expected type. (vectorize_slp_instance_root_stmt): Revert r10-5979 fix. * gcc.target/i386/pr101636.c: New testcase. * c-c++-common/torture/pr101636.c: Likewise.