[patch] basic-block.h: Remove PROP_EQUAL_NOTES.

Kazu Hirata kazu@cs.umass.edu
Fri Apr 15 14:11:00 GMT 2005


Hi,

Attached is a patch to remove PROP_EQUAL_NOTES as it is unused.

No code uses PROP_EQUAL_NOTES in any assignment or argument passing.
Note that PROP_EQUAL_NOTES is not a part of aggregate flags like
PROP_FINAL or PROP_POSTRELOAD, so "flags & PROP_EQUAL_NOTES" always
evaluates to 0.

The patch simply removes the code that depends on PROP_EQUAL_NOTES.

Tested on i686-pc-linux-gnu.  OK to apply?

p.s.
If you think these flag valus should be compressed to fill a "hole"
created by this patch, I would like to do that with a separate patch.
A pre-approval would be greatly appreciated.

Kazu Hirata

2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>

	* basic-block.h (PROP_EQUAL_NOTES): Remove.
	* flow.c (propagate_one_insn): Don't use PROP_EQUAL_NOTES.

Index: basic-block.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/basic-block.h,v
retrieving revision 1.249
diff -u -d -p -r1.249 basic-block.h
--- basic-block.h	13 Apr 2005 14:34:12 -0000	1.249
+++ basic-block.h	14 Apr 2005 23:25:55 -0000
@@ -780,7 +780,6 @@ enum update_life_extent
 #define PROP_ALLOW_CFG_CHANGES	32	/* Allow the CFG to be changed
 					   by dead code removal.  */
 #define PROP_AUTOINC		64	/* Create autoinc mem references.  */
-#define PROP_EQUAL_NOTES	128	/* Take into account REG_EQUAL notes.  */
 #define PROP_SCAN_DEAD_STORES	256	/* Scan for dead code.  */
 #define PROP_ASM_SCAN		512	/* Internal flag used within flow.c
 					   to flag analysis of asms.  */
Index: flow.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/flow.c,v
retrieving revision 1.625
diff -u -d -p -r1.625 flow.c
--- flow.c	12 Apr 2005 21:33:48 -0000	1.625
+++ flow.c	14 Apr 2005 23:25:57 -0000
@@ -1798,7 +1798,6 @@ propagate_one_insn (struct propagate_blo
     }
   else
     {
-      rtx note;
       /* Any regs live at the time of a call instruction must not go
 	 in a register clobbered by calls.  Find all regs now live and
 	 record this for them.  */
@@ -1873,10 +1872,6 @@ propagate_one_insn (struct propagate_blo
       /* Record uses.  */
       if (! insn_is_dead)
 	mark_used_regs (pbi, PATTERN (insn), NULL_RTX, insn);
-      if ((flags & PROP_EQUAL_NOTES)
-	  && ((note = find_reg_note (insn, REG_EQUAL, NULL_RTX))
-	      || (note = find_reg_note (insn, REG_EQUIV, NULL_RTX))))
-	mark_used_regs (pbi, XEXP (note, 0), NULL_RTX, insn);
 
       /* Sometimes we may have inserted something before INSN (such as a move)
 	 when we make an auto-inc.  So ensure we will scan those insns.  */



More information about the Gcc-patches mailing list