df-problems.c (df_note_bb_compute): Pass uses rather than defs to df_set_dead_notes_for_mw.

gcc/
	* df-problems.c (df_note_bb_compute): Pass uses rather than defs
	to df_set_dead_notes_for_mw.

From-SVN: r178109
This commit is contained in:
Richard Sandiford 2011-08-26 14:21:19 +00:00 committed by Richard Sandiford
parent 315036fe54
commit fd3e0a33c7
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
* df-problems.c (df_note_bb_compute): Pass uses rather than defs
to df_set_dead_notes_for_mw.
2011-08-26 Richard Guenther <rguenther@suse.de>
* varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].

View file

@ -3376,7 +3376,7 @@ df_note_bb_compute (unsigned int bb_index,
while (*mws_rec)
{
struct df_mw_hardreg *mws = *mws_rec;
if ((DF_MWS_REG_DEF_P (mws))
if (DF_MWS_REG_USE_P (mws)
&& !df_ignore_stack_reg (mws->start_regno))
{
bool really_add_notes = debug_insn != 0;