]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix typo in getting SLP_TREE_VECTYPE
authorRichard Biener <rguenther@suse.de>
Thu, 7 Aug 2025 12:44:47 +0000 (14:44 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 8 Aug 2025 07:04:09 +0000 (09:04 +0200)
It was applied on the stmt_info rather than the slp_node.

* tree-vect-stmts.cc (vectorizable_store): Apply SLP_TREE_VECTYPE
to slp_node rather than stmt_info.

gcc/tree-vect-stmts.cc

index dbeb8bdbf4f642b51668d220e21f33516e329833..92bda1c20cf3c96386d94e440e43adb105f6854e 100644 (file)
@@ -7777,7 +7777,7 @@ vectorizable_store (vec_info *vinfo,
        return false;
     }
 
-  tree vectype = SLP_TREE_VECTYPE (stmt_info), rhs_vectype = NULL_TREE;
+  tree vectype = SLP_TREE_VECTYPE (slp_node), rhs_vectype = NULL_TREE;
   poly_uint64 nunits = TYPE_VECTOR_SUBPARTS (vectype);
 
   if (loop_vinfo)