diff mbox series

adjust SLP tree dumping

Message ID nycvar.YFH.7.76.2003201859070.5137@zhemvz.fhfr.qr
State New
Headers show
Series adjust SLP tree dumping | expand

Commit Message

Richard Biener March 20, 2020, 5:59 p.m. UTC
This also dumps the root node we eventually smuggle in.

bootstrapped/tested on x86_64-unknown-linux-gnu

2020-03-20  Richard Biener  <rguenther@suse.de>

	* tree-vect-slp.c (vect_analyze_slp_instance): Dump SLP tree
	from the possibly modified root.
---
 gcc/tree-vect-slp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c
index fb13af7965e..e43d03b43de 100644
--- a/gcc/tree-vect-slp.c
+++ b/gcc/tree-vect-slp.c
@@ -2435,7 +2435,8 @@  vect_analyze_slp_instance (vec_info *vinfo,
 	    {
 	      dump_printf_loc (MSG_NOTE, vect_location,
 			       "Final SLP tree for instance:\n");
-	      vect_print_slp_tree (MSG_NOTE, vect_location, node);
+	      vect_print_slp_tree (MSG_NOTE, vect_location,
+				   SLP_INSTANCE_TREE (new_instance));
 	    }
 
 	  return true;