aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.h
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-11-08 15:25:51 +0100
committerRichard Biener <rguenther@suse.de>2023-11-08 16:35:37 +0100
commit38168bb69f8ed2b5d3e2e66a3813435230f83293 (patch)
tree43717cd907c3746004459491e96d052be6eb50a9 /gcc/tree-vectorizer.h
parentc49e0c57b22e68e1aa89204f300dc5d61b42d812 (diff)
downloadgcc-38168bb69f8ed2b5d3e2e66a3813435230f83293.zip
gcc-38168bb69f8ed2b5d3e2e66a3813435230f83293.tar.gz
gcc-38168bb69f8ed2b5d3e2e66a3813435230f83293.tar.bz2
TLC to vect_check_store_rhs and vect_slp_child_index_for_operand
This prepares us for the SLP of scatters. We have to tell vect_slp_child_index_for_operand whether we are dealing with a scatter/gather stmt so this adds an argument similar to the one we have for vect_get_operand_map. This also refactors vect_check_store_rhs to get the actual rhs and the associated SLP node instead of leaving that to the caller. * tree-vectorizer.h (vect_slp_child_index_for_operand): Add gatherscatter_p argument. * tree-vect-slp.cc (vect_slp_child_index_for_operand): Likewise. Pass it on. * tree-vect-stmts.cc (vect_check_store_rhs): Turn the rhs argument into an output, also output the SLP node associated with it. (vectorizable_simd_clone_call): Adjust. (vectorizable_store): Likewise. (vectorizable_load): Likewise.
Diffstat (limited to 'gcc/tree-vectorizer.h')
-rw-r--r--gcc/tree-vectorizer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vectorizer.h b/gcc/tree-vectorizer.h
index d2ddc2e..e4d7ab4 100644
--- a/gcc/tree-vectorizer.h
+++ b/gcc/tree-vectorizer.h
@@ -2462,7 +2462,7 @@ extern int vect_get_place_in_interleaving_chain (stmt_vec_info, stmt_vec_info);
extern slp_tree vect_create_new_slp_node (unsigned, tree_code);
extern void vect_free_slp_tree (slp_tree);
extern bool compatible_calls_p (gcall *, gcall *);
-extern int vect_slp_child_index_for_operand (const gimple *, int op);
+extern int vect_slp_child_index_for_operand (const gimple *, int op, bool);
/* In tree-vect-patterns.cc. */
extern void