https://gcc.gnu.org/g:e8ba59ef5c6284604f3c0920e246ed4cf889e541

commit e8ba59ef5c6284604f3c0920e246ed4cf889e541
Author: Richard Biener <rguent...@suse.de>
Date:   Thu Oct 5 13:31:16 2023 +0200

    Reduce single-lane SLP testresult noise
    
    The following avoids dumping 'vectorizing stmts using SLP' for
    single-lane instances since that causes extra testsuite fallout.
    
            * tree-vect-slp.cc (vect_schedule_slp): Gate dumping
            'vectorizing stmts using SLP' on > 1 lanes.

Diff:
---
 gcc/tree-vect-slp.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc
index ef0199cf3fb2..6bfc59dc2131 100644
--- a/gcc/tree-vect-slp.cc
+++ b/gcc/tree-vect-slp.cc
@@ -10055,7 +10055,8 @@ vect_schedule_slp (vec_info *vinfo, const 
vec<slp_instance> &slp_instances)
       if (!SLP_INSTANCE_ROOT_STMTS (instance).is_empty ())
        vectorize_slp_instance_root_stmt (node, instance);
 
-      if (dump_enabled_p ())
+      /* ???  Reduce some testsuite noise because of "more SLP".  */
+      if (SLP_TREE_LANES (node) > 1 && dump_enabled_p ())
        dump_printf_loc (MSG_NOTE, vect_location,
                          "vectorizing stmts using SLP.\n");
     }

Reply via email to