This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
More minor SSA changes
- To: gcc-patches at gcc dot gnu dot org
- Subject: More minor SSA changes
- From: Jeffrey A Law <law at localhost dot localdomain>
- Date: Wed, 20 Jun 2001 07:33:16 -0700
- Reply-to: law at redhat dot com
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. */