There's one use of STMT_VINFO_VECTYPE in vectorizable_reduction where I'm only 99% sure which SLP_TREE_VECTYPE to replace it with (vectorizable_reduction needs a lot of post-only-SLP TLC). The following replaces it with the hopefully appropriate one.
Bootstrapped and tested on x86_64-unknown-linux-gnu, cross-tested aarch64-linux-gnu, pushed. * tree-vect-loop.cc (vectorizable_reduction): Replace STMT_VINFO_VECTYPE use with SLP_TREE_VECTYPE. --- gcc/tree-vect-loop.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc index 56aeb4d1e6a..c6833b26f6f 100644 --- a/gcc/tree-vect-loop.cc +++ b/gcc/tree-vect-loop.cc @@ -7225,7 +7225,7 @@ vectorizable_reduction (loop_vec_info loop_vinfo, vectype_in = vectype_op; } else if (!vectype_in) - vectype_in = STMT_VINFO_VECTYPE (phi_info); + vectype_in = SLP_TREE_VECTYPE (slp_node); if (!REDUC_GROUP_FIRST_ELEMENT (vdef)) vdef_slp = SLP_TREE_CHILDREN (vdef_slp)[reduc_idx]; } -- 2.43.0