From: Richard Biener Date: Thu, 8 Jan 2026 08:32:19 +0000 (+0100) Subject: More verbose dumping on missed vector optabs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84257032ef468f51b5105098d1cc2a1400e79944;p=thirdparty%2Fgcc.git 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 --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc index 8086d4c35c9..a563238c4be 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);