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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So perhaps:
--- gcc/lra-constraints.cc.jj   2023-03-17 16:09:09.162136438 +0100
+++ gcc/lra-constraints.cc      2023-03-17 21:37:04.799285670 +0100
@@ -5020,7 +5020,9 @@ combine_reload_insn (rtx_insn *from, rtx
   /* Check conditions for second memory reload and original insn:  */
   if ((targetm.secondary_memory_needed
        == hook_bool_mode_reg_class_t_reg_class_t_false)
-      || NEXT_INSN (from) != to || CALL_P (to)
+      || NEXT_INSN (from) != to
+      || !NONDEBUG_INSN_P (to)
+      || CALL_P (to)
       || id->used_insn_alternative == LRA_UNKNOWN_ALT
       || (set = single_set (from)) == NULL_RTX)
     return false;
?

Reply via email to