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

--- Comment #6 from Dimitar Dimitrov <dimitar at gcc dot gnu.org> ---
A naive filter to skip debug insns before calling move_plus_up does fix the
issue. But I'm not sure if it is a proper fix:

diff --git a/gcc/lra-eliminations.cc b/gcc/lra-eliminations.cc
@@ -440,5 +440,5 @@ lra_eliminate_regs_1 (rtx_insn *insn, rtx x, machine_mode
mem_mode,
         an address operand of a load-address insn.  */

-      {
+      if (NONDEBUG_INSN_P (insn)) {
        rtx new0 = lra_eliminate_regs_1 (insn, XEXP (x, 0), mem_mode,
                                         subst_p, update_p,

Reply via email to