From 27aad521570cbc1050ba957c0ee47aed18033dc1 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 5 Jan 2021 15:55:24 +0100 Subject: [PATCH] move SLP debug counter This moves it to catch individual SLP subgraphs 2021-01-05 Richard Biener * tree-vect-slp.c (vect_slp_region): Move debug counter to cover individual subgraphs. --- gcc/tree-vect-slp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index 67aaa7b0a6a..49cb635ee92 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -4616,8 +4616,7 @@ vect_slp_region (vec bbs, vec 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 bbs, vec 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 " -- 2.30.2