https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123724

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Untested fix:
--- gcc/config/aarch64/aarch64.cc.jj    2026-01-14 17:08:42.202383986 +0100
+++ gcc/config/aarch64/aarch64.cc       2026-01-19 20:45:36.826395280 +0100
@@ -18536,6 +18536,8 @@ aarch64_possible_by_lane_insn_p (vec_inf
   FOR_EACH_IMM_USE_FAST (use_p, iter, var)
     {
       gimple *new_stmt = USE_STMT (use_p);
+      if (is_gimple_debug (new_stmt))
+       continue;
       auto stmt_info = vect_stmt_to_vectorize (m_vinfo->lookup_stmt
(new_stmt));
       auto rep_stmt = STMT_VINFO_STMT (stmt_info);
       /* Re-association is a problem here, since lane instructions are only

Reply via email to