* df-problems.c (df_create_unused_note, df_note_bb_compute):
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Jun 2010 05:25:23 +0000 (05:25 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Jun 2010 05:25:23 +0000 (05:25 +0000)
micro-optimize the checks when to add new note.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160249 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/df-problems.c

index e0c0358..2ac6fe6 100644 (file)
@@ -1,3 +1,8 @@
+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
index 25bbba6..5f719c6 100644 (file)
@@ -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))