aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2025-08-01 13:27:00 +0200
committerRichard Biener <rguenther@suse.de>2025-08-01 14:54:11 +0200
commit39d429631ff7060238dc046db4340a304560227f (patch)
treeb251d8b9fcddda23e46592cb01795358b908df2b /gcc
parent95aecacc8d9c40100f01433ba214103e756dc984 (diff)
downloadgcc-39d429631ff7060238dc046db4340a304560227f.zip
gcc-39d429631ff7060238dc046db4340a304560227f.tar.gz
gcc-39d429631ff7060238dc046db4340a304560227f.tar.bz2
Properly record SLP node when costing a vectorized store
Even when we emit scalar stores we should pass down the SLP node. PR tree-optimization/121350 * tree-vect-stmts.cc (vectorizable_store): Pass down SLP node when costing scalar stores in vect_body.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree-vect-stmts.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc
index 7f922c2..97222f6 100644
--- a/gcc/tree-vect-stmts.cc
+++ b/gcc/tree-vect-stmts.cc
@@ -8233,7 +8233,7 @@ vectorizable_store (vec_info *vinfo,
else
inside_cost
+= record_stmt_cost (cost_vec, n_adjacent_stores,
- scalar_store, stmt_info, 0, vect_body);
+ scalar_store, slp_node, 0, vect_body);
/* Only need vector extracting when there are more
than one stores. */
if (nstores > 1)