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

--- Comment #9 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #7)
> 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;
> ?

Yes, that is what I am trying to do.  For me only question why is LRA works
there on notes.   LRA pushes only real insns to work stack.

Reply via email to