On Tue, 28 Oct 2025, Christopher Bazley wrote:
Please track such debugging aids separately from this series
(and no, I think this is way too verbose)
> ---
> gcc/tree-vect-slp.cc | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc
> index 4a30cf3d187..55c634f0dd9 100644
> --- a/gcc/tree-vect-slp.cc
> +++ b/gcc/tree-vect-slp.cc
> @@ -137,12 +137,19 @@ _slp_tree::_slp_tree ()
> this->lanes = 0;
> SLP_TREE_TYPE (this) = undef_vec_info_type;
> this->data = NULL;
> + if (dump_enabled_p ())
> + dump_printf_loc (MSG_NOTE, vect_location, "Created SLP node %p\n",
> + (void *) this);
> }
>
> /* Tear down a SLP node. */
>
> _slp_tree::~_slp_tree ()
> {
> + if (dump_enabled_p ())
> + dump_printf_loc (MSG_NOTE, vect_location, "Destroyed SLP node %p\n",
> + (void *) this);
> +
> if (this->prev_node)
> this->prev_node->next_node = this->next_node;
> else
>
--
Richard Biener <[email protected]>
SUSE Software Solutions Germany GmbH,
Frankenstrasse 146, 90461 Nuernberg, Germany;
GF: Ivo Totev, Andrew McDonald, Werner Knoblich; (HRB 36809, AG Nuernberg)