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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rth at gcc dot gnu.org,
                   |                            |vmakarov at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
2016-01-28  Jakub Jelinek  <ja...@redhat.com>

        PR middle-end/69542
        * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
        non-debug insns.

--- gcc/lra-remat.c.jj  2016-01-28 15:07:24.000000000 +0100
+++ gcc/lra-remat.c     2016-01-28 18:24:43.778297120 +0100
@@ -694,7 +694,7 @@ calculate_local_reg_remat_bb_data (void)

   FOR_EACH_BB_FN (bb, cfun)
     FOR_BB_INSNS (bb, insn)
-      if (INSN_P (insn))
+      if (NONDEBUG_INSN_P (insn))
        set_bb_regs (bb, insn);
 }

fixes this, just waiting for testcase and will bootstrap/regtest it.

Reply via email to