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]

More minor SSA changes



Fixing problems in my changes from yesterday...   Installed into the
mainline sources.

  	* ssa.c (rename_block): Update parameter to remove_phi_alternative.
	(convert_from_ssa): Do create REG_DEAD and REG_UNUSED notes when
	re-running life analysis. 

Index: ssa.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/ssa.c,v
retrieving revision 1.28
diff -c -3 -p -r1.28 ssa.c
*** ssa.c	2001/06/19 16:54:26	1.28
--- ssa.c	2001/06/20 14:28:30
*************** rename_block (bb, idom)
*** 1065,1071 ****
  	     consider those edges.  */
  	  if (reg == NULL || reg == RENAME_NO_RTX)
  	    {
! 	      if (! remove_phi_alternative (phi, bb))
  		abort ();
  	    }
  	  else
--- 1065,1071 ----
  	     consider those edges.  */
  	  if (reg == NULL || reg == RENAME_NO_RTX)
  	    {
! 	      if (! remove_phi_alternative (phi, b))
  		abort ();
  	    }
  	  else
*************** convert_from_ssa()
*** 2153,2160 ****
       any significant dead code at this point, except perhaps dead
       stores.  So do not take the time to perform dead code elimination. 
  
!      We also do not need death notes, so don't bother creating them.  */
!   life_analysis (insns, NULL, 0);
  
    /* Figure out which regs in copies and phi nodes don't conflict and
       therefore can be coalesced.  */
--- 2153,2160 ----
       any significant dead code at this point, except perhaps dead
       stores.  So do not take the time to perform dead code elimination. 
  
!      Register coalescing needs death notes, so generate them.  */
!   life_analysis (insns, NULL, PROP_DEATH_NOTES);
  
    /* Figure out which regs in copies and phi nodes don't conflict and
       therefore can be coalesced.  */
 






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