]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove use of STMT_VINFO_DEF_TYPE in vect_analyze_stmt
authorRichard Biener <rguenther@suse.de>
Wed, 13 Aug 2025 12:43:28 +0000 (14:43 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 13 Aug 2025 12:45:17 +0000 (14:45 +0200)
This removes a use of STMT_VINFO_DEF_TYPE.

* tree-vect-stmts.cc (vect_analyze_stmt): Use
SLP_TREE_DEF_TYPE instead of STMT_VINFO_DEF_TYPE.

gcc/tree-vect-stmts.cc

index 86d878ff6e6586ba315414f326be7438ba6b33b6..afb71b77da09e9d696c31e4a717e4c2dfcce4ff8 100644 (file)
@@ -12604,7 +12604,7 @@ vect_analyze_stmt (vec_info *vinfo,
   if (!bb_vinfo
       && SLP_TREE_TYPE (node) != reduc_vec_info_type
       && (SLP_TREE_TYPE (node) != lc_phi_info_type
-         || STMT_VINFO_DEF_TYPE (stmt_info) == vect_internal_def)
+         || SLP_TREE_DEF_TYPE (node) == vect_internal_def)
       && (!node->ldst_lanes || SLP_TREE_CODE (node) == VEC_PERM_EXPR)
       && !can_vectorize_live_stmts (as_a <loop_vec_info> (vinfo),
                                    node, node_instance,