dump when SLP analysis fails due to shared vectype mismatch
authorRichard Biener <rguenther@suse.de>
Wed, 28 Oct 2020 15:31:06 +0000 (16:31 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 28 Oct 2020 15:49:36 +0000 (16:49 +0100)
This adds another one.

2020-10-28  Richard Biener  <rguenther@suse.de>

* tree-vect-slp.c (vect_slp_analyze_node_operations_1): Dump
when shared vectype update fails.

gcc/tree-vect-slp.c

index c98f747d4a962baab8d8f6d5a7b276845654bfb0..ff3a0c2fd8e6792137ec04d2ba8597b764a9ec80 100644 (file)
@@ -3371,7 +3371,13 @@ vect_slp_analyze_node_operations_1 (vec_info *vinfo, slp_tree node,
 
   if (is_a <bb_vec_info> (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,