Commit 95f4cd58 by Jan Hubicka Committed by Jan Hubicka

df-problems.c (df_create_unused_note, [...]): micro-optimize the checks when to add new note.

	* df-problems.c (df_create_unused_note, df_note_bb_compute):
	micro-optimize the checks when to add new note.

From-SVN: r160249
parent 6e2188e0
2010-06-03 Jan Hubicka <jh@suse.cz>
* df-problems.c (df_create_unused_note, df_note_bb_compute):
micro-optimize the checks when to add new note.
2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
* final.c (output_asm_insn): Call
......
......@@ -3387,8 +3387,8 @@ df_create_unused_note (rtx insn, rtx old, df_ref def,
}
#endif
if (!(bitmap_bit_p (live, dregno)
|| (DF_REF_FLAGS (def) & DF_REF_MW_HARDREG)
if (!((DF_REF_FLAGS (def) & DF_REF_MW_HARDREG)
|| bitmap_bit_p (live, dregno)
|| bitmap_bit_p (artificial_uses, dregno)
|| df_ignore_stack_reg (dregno)))
{
......@@ -3757,10 +3757,10 @@ df_note_bb_compute (unsigned int bb_index,
else
dead_debug_insert_before (&debug, uregno, insn);
if ( (!(DF_REF_FLAGS (use) & DF_REF_MW_HARDREG))
if ( (!(DF_REF_FLAGS (use)
& (DF_REF_MW_HARDREG | DF_REF_READ_WRITE)))
&& (!bitmap_bit_p (do_not_gen, uregno))
&& (!bitmap_bit_p (artificial_uses, uregno))
&& (!(DF_REF_FLAGS (use) & DF_REF_READ_WRITE))
&& (!df_ignore_stack_reg (uregno)))
{
rtx reg = (DF_REF_LOC (use))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment