diff options
author | Tamar Christina <tamar.christina@arm.com> | 2020-09-30 14:46:16 +0100 |
---|---|---|
committer | Tamar Christina <tamar.christina@arm.com> | 2020-09-30 14:47:20 +0100 |
commit | aa248b8db9a7594fcc84e52a84d56526d4284ca8 (patch) | |
tree | 9fef7228a206707c269500f357d09b1aa06a14ef /gcc/tree-vectorizer.h | |
parent | 734eed68537a1a9eed43a4e409da527474fbf63d (diff) | |
download | gcc-aa248b8db9a7594fcc84e52a84d56526d4284ca8.zip gcc-aa248b8db9a7594fcc84e52a84d56526d4284ca8.tar.gz gcc-aa248b8db9a7594fcc84e52a84d56526d4284ca8.tar.bz2 |
middle-end: Refactor refcnt to use SLP_TREE_REF_COUNT for consistency
This is a small refactoring which introduces SLP_TREE_REF_COUNT and replaces
the uses of refcnt with it. This for consistency between the other properties.
A similar patch was pre-approved last year but since there are more use now I am
sending it for review anyway.
gcc/ChangeLog:
* tree-vectorizer.h (SLP_TREE_REF_COUNT): New.
* tree-vect-slp.c (_slp_tree::_slp_tree, _slp_tree::~_slp_tree,
vect_free_slp_tree, vect_build_slp_tree, vect_print_slp_tree,
slp_copy_subtree, vect_attempt_slp_rearrange_stmts): Use it.
Diffstat (limited to 'gcc/tree-vectorizer.h')
-rw-r--r-- | gcc/tree-vectorizer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-vectorizer.h b/gcc/tree-vectorizer.h index e62f1cc..37b0915 100644 --- a/gcc/tree-vectorizer.h +++ b/gcc/tree-vectorizer.h @@ -204,6 +204,7 @@ public: #define SLP_TREE_CHILDREN(S) (S)->children #define SLP_TREE_SCALAR_STMTS(S) (S)->stmts #define SLP_TREE_SCALAR_OPS(S) (S)->ops +#define SLP_TREE_REF_COUNT(S) (S)->refcnt #define SLP_TREE_VEC_STMTS(S) (S)->vec_stmts #define SLP_TREE_VEC_DEFS(S) (S)->vec_defs #define SLP_TREE_NUMBER_OF_VEC_STMTS(S) (S)->vec_stmts_size |