https://gcc.gnu.org/g:84257032ef468f51b5105098d1cc2a1400e79944

commit r16-6574-g84257032ef468f51b5105098d1cc2a1400e79944
Author: Richard Biener <[email protected]>
Date:   Thu Jan 8 09:32:19 2026 +0100

    More verbose dumping on missed vector optabs
    
    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.

Diff:
---
 gcc/tree-vect-stmts.cc | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc
index 8086d4c35c9a..a563238c4be0 100644
--- a/gcc/tree-vect-stmts.cc
+++ b/gcc/tree-vect-stmts.cc
@@ -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);

Reply via email to