]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Do not pass vector type to scalar costing
authorRichard Biener <rguenther@suse.de>
Thu, 26 Feb 2026 13:46:36 +0000 (14:46 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 24 Apr 2026 13:58:53 +0000 (15:58 +0200)
The following drops passing of the vector type to scalar stmt costing
for BB vectorization.

* tree-vect-slp.cc (vect_bb_slp_scalar_cost): Do not pass
vector type to costing.

gcc/tree-vect-slp.cc

index 185ff6fb542b0650eefb9a21f2e07f6e26801929..cec3c2b958989d7b7797c0f65d53258a0e266a24 100644 (file)
@@ -9598,7 +9598,7 @@ next_lane:
       else
        kind = scalar_stmt;
       record_stmt_cost (cost_vec, 1, kind, orig_stmt_info,
-                       SLP_TREE_VECTYPE (node), 0, vect_body);
+                       NULL_TREE, 0, vect_body);
     }
 
   auto_vec<bool, 20> subtree_life;