]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
df.c (df_def_record_1, [...]): Don't use DF_FOR_REGALLOC.
authorKazu Hirata <kazu@cs.umass.edu>
Wed, 2 Feb 2005 20:20:09 +0000 (20:20 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Wed, 2 Feb 2005 20:20:09 +0000 (20:20 +0000)
* df.c (df_def_record_1, df_uses_record): Don't use
DF_FOR_REGALLOC.
* df.h (DF_FOR_REGALLOC): Remove.

From-SVN: r94608

gcc/ChangeLog
gcc/df.c
gcc/df.h

index 9a7054c4ae339aedae816547523ccc06c59e4137..708d7f8513c90621f1594db1ac938240c7788e75 100644 (file)
@@ -1,3 +1,9 @@
+2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * df.c (df_def_record_1, df_uses_record): Don't use
+       DF_FOR_REGALLOC.
+       * df.h (DF_FOR_REGALLOC): Remove.
+
 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
 
        PR c/19435
index 18089fecd7cb7ec9b0b651dc76e7dfb87851776e..2e9ddfd243680ca26387b42dfad417801ceb3dde 100644 (file)
--- a/gcc/df.c
+++ b/gcc/df.c
@@ -913,8 +913,7 @@ df_def_record_1 (struct df *df, rtx x, basic_block bb, rtx insn)
      be handy for the reg allocator.  */
   while (GET_CODE (dst) == STRICT_LOW_PART
         || GET_CODE (dst) == ZERO_EXTRACT
-        || ((df->flags & DF_FOR_REGALLOC) == 0
-             && read_modify_subreg_p (dst)))
+        || read_modify_subreg_p (dst))
     {
       /* Strict low part always contains SUBREG, but we do not want to make
         it appear outside, as whole register is always considered.  */
@@ -1025,8 +1024,7 @@ df_uses_record (struct df *df, rtx *loc, enum df_ref_type ref_type,
        switch (GET_CODE (dst))
          {
            case SUBREG:
-             if ((df->flags & DF_FOR_REGALLOC) == 0
-                  && read_modify_subreg_p (dst))
+             if (read_modify_subreg_p (dst))
                {
                  df_uses_record (df, &SUBREG_REG (dst), DF_REF_REG_USE, bb,
                                  insn, DF_REF_READ_WRITE);
index d684c1e83d9090461c7b4059c4de1a0bcc9b8d90..a916bc5b2a7b74664d103966746b936047cb5c71 100644 (file)
--- a/gcc/df.h
+++ b/gcc/df.h
@@ -37,7 +37,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #define DF_ALL         255
 #define DF_HARD_REGS   1024    /* Mark hard registers.  */
 #define DF_EQUIV_NOTES 2048    /* Mark uses present in EQUIV/EQUAL notes.  */
-#define DF_FOR_REGALLOC        4096    /* If called for the register allocator.  */
 
 enum df_ref_type {DF_REF_REG_DEF, DF_REF_REG_USE, DF_REF_REG_MEM_LOAD,
                  DF_REF_REG_MEM_STORE};