]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
More verbose dumping on missed vector optabs
authorRichard Biener <rguenther@suse.de>
Thu, 8 Jan 2026 08:32:19 +0000 (09:32 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 8 Jan 2026 10:32:45 +0000 (11:32 +0100)
The following changes 'no optab' to mention which tree code and
vector type we were looking for and adds 'shift' to the instances
of this message emitted from vectorizable_shift.

* tree-vect-stmts.cc (vectorizable_shift): Improve missing
optab or optab support messages.
(vectorizable_operation): Likewise.

gcc/tree-vect-stmts.cc

index 8086d4c35c9a7ea585e8996ed51fdd39db551de6..a563238c4be036da2d5dd9f6b582216bb98e9679 100644 (file)
@@ -6348,7 +6348,8 @@ vectorizable_shift (vec_info *vinfo,
     {
       if (dump_enabled_p ())
         dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,
-                         "no optab.\n");
+                        "no shift optab for %s and %T.\n",
+                        get_tree_code_name (code), vectype);
       return false;
     }
   vec_mode = TYPE_MODE (vectype);
@@ -6357,7 +6358,7 @@ vectorizable_shift (vec_info *vinfo,
     {
       if (dump_enabled_p ())
         dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,
-                         "op not supported by target.\n");
+                        "shift op not supported by target.\n");
       return false;
     }
   /* vector lowering cannot optimize vector shifts using word arithmetic.  */
@@ -6723,7 +6724,8 @@ vectorizable_operation (vec_info *vinfo,
     {
       if (dump_enabled_p ())
        dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,
-                        "no optab.\n");
+                        "no optab for %s and %T.\n",
+                        get_tree_code_name (code), vectype);
       return false;
     }
   target_support_p = can_implement_p (optab, vec_mode);