---
 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
-- 
2.43.0

Reply via email to