df-problems.c (df_note_bb_compute): Do not take note of debug uses for whose REGs we won't emit DEAD or UNUSED notes.

* df-problems.c (df_note_bb_compute): Do not take note of
debug uses for whose REGs we won't emit DEAD or UNUSED notes.

From-SVN: r186421
This commit is contained in:
Alexandre Oliva 2012-04-13 15:56:07 +00:00 committed by Alexandre Oliva
parent 6a184afa58
commit 6ae1d471b1
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-04-13 Alexandre Oliva <aoliva@redhat.com>
* df-problems.c (df_note_bb_compute): Do not take note of
debug uses for whose REGs we won't emit DEAD or UNUSED notes.
2012-04-13 Alexandre Oliva <aoliva@redhat.com>
PR debug/51570

View File

@ -3453,7 +3453,12 @@ df_note_bb_compute (unsigned int bb_index,
{
if (debug_insn > 0)
{
dead_debug_add (&debug, use, uregno);
/* We won't add REG_UNUSED or REG_DEAD notes for
these, so we don't have to mess with them in
debug insns either. */
if (!bitmap_bit_p (artificial_uses, uregno)
&& !df_ignore_stack_reg (uregno))
dead_debug_add (&debug, use, uregno);
continue;
}
break;