move SLP debug counter
authorRichard Biener <rguenther@suse.de>
Tue, 5 Jan 2021 14:55:24 +0000 (15:55 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 5 Jan 2021 15:43:39 +0000 (16:43 +0100)
This moves it to catch individual SLP subgraphs

2021-01-05  Richard Biener  <rguenther@suse.de>

* tree-vect-slp.c (vect_slp_region): Move debug counter
to cover individual subgraphs.

gcc/tree-vect-slp.c

index 67aaa7b0a6a728bbca24cda0b4b9058c40f70545..49cb635ee9215414c9fa2cba669816d534ef4bf7 100644 (file)
@@ -4616,8 +4616,7 @@ vect_slp_region (vec<basic_block> bbs, vec<data_reference_p> datarefs,
        bb_vinfo->shared->check_datarefs ();
       bb_vinfo->vector_mode = next_vector_mode;
 
-      if (vect_slp_analyze_bb_1 (bb_vinfo, n_stmts, fatal, dataref_groups)
-         && dbg_cnt (vect_slp))
+      if (vect_slp_analyze_bb_1 (bb_vinfo, n_stmts, fatal, dataref_groups))
        {
          if (dump_enabled_p ())
            {
@@ -4648,6 +4647,9 @@ vect_slp_region (vec<basic_block> bbs, vec<data_reference_p> datarefs,
                  continue;
                }
 
+             if (!dbg_cnt (vect_slp))
+               continue;
+
              if (!vectorized && dump_enabled_p ())
                dump_printf_loc (MSG_NOTE, vect_location,
                                 "Basic block will be vectorized "