diff options
author | Tamar Christina <tamar.christina@arm.com> | 2020-12-13 13:53:48 +0000 |
---|---|---|
committer | Tamar Christina <tamar.christina@arm.com> | 2020-12-13 13:53:48 +0000 |
commit | 10bbba9145700e2c3b4709c1041c66d8ff85c7f1 (patch) | |
tree | b8c7d225b028590a0716073890e91419bb899974 /gcc/tree-vect-patterns.c | |
parent | 501f470267445e037614649639d17a1b32b4a9aa (diff) | |
download | gcc-10bbba9145700e2c3b4709c1041c66d8ff85c7f1.zip gcc-10bbba9145700e2c3b4709c1041c66d8ff85c7f1.tar.gz gcc-10bbba9145700e2c3b4709c1041c66d8ff85c7f1.tar.bz2 |
middle-end: Refactor and expose some vectorizer helper functions.
This is a small refactoring which exposes some helper functions in the
vectorizer so they can be used in other places.
gcc/ChangeLog:
* tree-vect-patterns.c (vect_mark_pattern_stmts): Remove static inline.
* tree-vect-slp.c (vect_create_new_slp_node): Remove static and only
set smts if valid.
* tree-vectorizer.c (vec_info::add_pattern_stmt): New.
(vec_info::set_vinfo_for_stmt): Optionally enforce read-only.
* tree-vectorizer.h (struct _slp_tree): Use new types.
(lane_permutation_t, lane_permutation_t): New.
(vect_create_new_slp_node, vect_mark_pattern_stmts): New.
Diffstat (limited to 'gcc/tree-vect-patterns.c')
-rw-r--r-- | gcc/tree-vect-patterns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-patterns.c b/gcc/tree-vect-patterns.c index bf57c49..ff1358a 100644 --- a/gcc/tree-vect-patterns.c +++ b/gcc/tree-vect-patterns.c @@ -5281,7 +5281,7 @@ const unsigned int NUM_PATTERNS = ARRAY_SIZE (vect_vect_recog_func_ptrs); /* Mark statements that are involved in a pattern. */ -static inline void +void vect_mark_pattern_stmts (vec_info *vinfo, stmt_vec_info orig_stmt_info, gimple *pattern_stmt, tree pattern_vectype) |