This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ssa_uses varray



The ssa_uses isn't used in any way shape or form.  In fact, it's likely it
will never be used in any way shape or form.  Rather than waste memory
setting up an array we never need, I'm just removing it.

For the mainline only of course...

	* ssa.c (ssa_uses): Remove definition.
	(apply_delayed_renames): Don't grow ssa_uses.
	(rename_block): Remove comment related to ssa_uses.
	(rename_registers): Do not initialize ssa_uses.
	(convert_from_ssa): Do not free ssa_uses.

Index: ssa.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/ssa.c,v
retrieving revision 1.26
diff -c -3 -p -r1.26 ssa.c
*** ssa.c	2001/04/13 16:34:41	1.26
--- ssa.c	2001/06/19 14:15:04
*************** int in_ssa_form = 0;
*** 92,100 ****
  /* Element I is the single instruction that sets register I.  */
  varray_type ssa_definition;
  
- /* Element I is an INSN_LIST of instructions that use register I.  */
- varray_type ssa_uses;
- 
  /* Element I-PSEUDO is the normal register that originated the ssa
     register in question.  */
  varray_type ssa_rename_from;
--- 92,97 ----
*************** apply_delayed_renames (c)
*** 828,834 ****
  	{
  	  int new_limit = new_regno * 5 / 4;
  	  VARRAY_GROW (ssa_definition, new_limit);
- 	  VARRAY_GROW (ssa_uses, new_limit);
  	}
  
        VARRAY_RTX (ssa_definition, new_regno) = r->set_insn;
--- 825,830 ----
*************** rename_block (bb, idom)
*** 1084,1090 ****
  		abort();
  
  	      *phi_alternative (phi, bb) = reg;
- 	      /* ??? Mark for a new ssa_uses entry.  */
  	    }
  
  	  insn = NEXT_INSN (insn);
--- 1080,1085 ----
*************** rename_registers (nregs, idom)
*** 1124,1130 ****
       int *idom;
  {
    VARRAY_RTX_INIT (ssa_definition, nregs * 3, "ssa_definition");
-   VARRAY_RTX_INIT (ssa_uses, nregs * 3, "ssa_uses");
    ssa_rename_from_initialize ();
  
    ssa_rename_to_pseudo = (rtx *) alloca (nregs * sizeof(rtx));
--- 1119,1124 ----
*************** convert_from_ssa()
*** 2222,2228 ****
  
    /* Deallocate the data structures.  */
    VARRAY_FREE (ssa_definition);
-   VARRAY_FREE (ssa_uses);
    ssa_rename_from_free ();
  }
  
--- 2216,2221 ----




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]