lra-constraints.c (update_ebb_live_info): Process empty blocks.
authorVladimir Makarov <vmakarov@redhat.com>
Tue, 23 Oct 2012 20:10:27 +0000 (20:10 +0000)
committerVladimir Makarov <vmakarov@gcc.gnu.org>
Tue, 23 Oct 2012 20:10:27 +0000 (20:10 +0000)
2012-10-23  Vladimir Makarov  <vmakarov@redhat.com>

* lra-constraints.c (update_ebb_live_info): Process empty blocks.

From-SVN: r192743

gcc/ChangeLog
gcc/lra-constraints.c

index 66f3034831256bbc0484be6e3bb53442856491d6..89578c39be2cac536a25fcb3f1dbcb5c0935727b 100644 (file)
@@ -1,3 +1,7 @@
+2012-10-23  Vladimir Makarov  <vmakarov@redhat.com>
+
+       * lra-constraints.c (update_ebb_live_info): Process empty blocks.
+
 2012-10-23  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * expmed.c (store_split_bit_field): Update the calls to
index ec48e9ea02cd2939b443e9f9c2ded3aacf40c178..32ecfee7659faceaa4480beb6017e050c1de8baa 100644 (file)
@@ -4300,8 +4300,6 @@ update_ebb_live_info (rtx head, rtx tail)
        curr_insn = prev_insn)
     {
       prev_insn = PREV_INSN (curr_insn);
-      if (! INSN_P (curr_insn))
-       continue;
       curr_bb = BLOCK_FOR_INSN (curr_insn);
       if (curr_bb != prev_bb)
        {
@@ -4336,7 +4334,7 @@ update_ebb_live_info (rtx head, rtx tail)
          prev_bb = curr_bb;
          bitmap_and (&live_regs, &check_only_regs, df_get_live_out (curr_bb));
        }
-      if (DEBUG_INSN_P (curr_insn))
+      if (! NONDEBUG_INSN_P (curr_insn))
        continue;
       curr_id = lra_get_insn_recog_data (curr_insn);
       remove_p = false;