adjust SLP tree dumping
authorRichard Biener <rguenther@suse.de>
Fri, 20 Mar 2020 17:57:30 +0000 (18:57 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 20 Mar 2020 17:58:56 +0000 (18:58 +0100)
This also dumps the root node we eventually smuggle in.

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/ChangeLog
gcc/tree-vect-slp.c

index 9f50e43924eb70ea39f3812107f13add7962419a..967e4540bce7e60622a1d7a76ce48d82a32068ea 100644 (file)
@@ -1,3 +1,8 @@
+2020-03-20  Richard Biener  <rguenther@suse.de>
+
+       * tree-vect-slp.c (vect_analyze_slp_instance): Dump SLP tree
+       from the possibly modified root.
+
 2020-03-20  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
             Andre Vieira  <andre.simoesdiasvieira@arm.com>
             Mihail Ionescu  <mihail.ionescu@arm.com>
index fb13af7965eb3ee0a3b2401d2f42b806b4221929..e43d03b43de945f57265437af2c1f7d164a0bb2e 100644 (file)
@@ -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;