From: Richard Biener Date: Wed, 28 Oct 2020 15:31:06 +0000 (+0100) Subject: dump when SLP analysis fails due to shared vectype mismatch X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f4af2dde57992ae0d60a2077f4f0024327b8e6d5;p=gcc.git dump when SLP analysis fails due to shared vectype mismatch This adds another one. 2020-10-28 Richard Biener * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Dump when shared vectype update fails. --- diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index c98f747d4a9..ff3a0c2fd8e 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -3371,7 +3371,13 @@ vect_slp_analyze_node_operations_1 (vec_info *vinfo, slp_tree node, if (is_a (vinfo) && !vect_update_shared_vectype (stmt_info, SLP_TREE_VECTYPE (node))) - return false; + { + if (dump_enabled_p ()) + dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location, + "desired vector type conflicts with earlier one " + "for %G", stmt_info->stmt); + return false; + } bool dummy; return vect_analyze_stmt (vinfo, stmt_info, &dummy,