This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] df.[ch]: Remove DF_FOR_REGALLOC.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 02 Feb 2005 08:19:38 -0500 (EST)
- Subject: [patch] df.[ch]: Remove DF_FOR_REGALLOC.
Hi,
Attached is a patch to remove DF_FOR_REGALLOC as nobody calls
df_analyze with it.
Daniel Berlin, one of the contritbutors to the new-ra, has told me on
IRC that he doesn't want to keep DF_FOR_REGALLOC.
Tested on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
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.
Index: df.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/df.c,v
retrieving revision 1.81
diff -u -d -p -r1.81 df.c
--- df.c 18 Jan 2005 11:36:05 -0000 1.81
+++ df.c 2 Feb 2005 04:22:06 -0000
@@ -913,8 +913,7 @@ df_def_record_1 (struct df *df, rtx x, b
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,
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: df.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/df.h,v
retrieving revision 1.29
diff -u -d -p -r1.29 df.h
--- df.h 17 Nov 2004 22:05:59 -0000 1.29
+++ df.h 2 Feb 2005 04:22:06 -0000
@@ -37,7 +37,6 @@ Software Foundation, 59 Temple Place - S
#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};