middle-end: Refactor refcnt to use SLP_TREE_REF_COUNT for consistency
authorTamar Christina <tamar.christina@arm.com>
Wed, 30 Sep 2020 13:46:16 +0000 (14:46 +0100)
committerTamar Christina <tamar.christina@arm.com>
Wed, 30 Sep 2020 13:47:20 +0000 (14:47 +0100)
commitaa248b8db9a7594fcc84e52a84d56526d4284ca8
tree9fef7228a206707c269500f357d09b1aa06a14ef
parent734eed68537a1a9eed43a4e409da527474fbf63d
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.
gcc/tree-vect-slp.c
gcc/tree-vectorizer.h