Commit 10ab5c54 by Jeffrey A Law Committed by Jeff Law

ssa.c (ssa_uses): Remove definition.

        * 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.

From-SVN: r43460
parent 57fae080
Tue Jun 19 07:53:52 2001 Jeffrey A Law (law@cygnus.com) Tue Jun 19 07:53:52 2001 Jeffrey A Law (law@cygnus.com)
* 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.
* ssa-dce.c: Renamed from dce.c. * ssa-dce.c: Renamed from dce.c.
* Makefile.in (OBJS): Replace dce.o with ssa-dce.o * Makefile.in (OBJS): Replace dce.o with ssa-dce.o
(dependencies): Replace dce.c with ssa-dce.c and dce.o with (dependencies): Replace dce.c with ssa-dce.c and dce.o with
......
...@@ -92,9 +92,6 @@ int in_ssa_form = 0; ...@@ -92,9 +92,6 @@ int in_ssa_form = 0;
/* Element I is the single instruction that sets register I. */ /* Element I is the single instruction that sets register I. */
varray_type ssa_definition; 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 /* Element I-PSEUDO is the normal register that originated the ssa
register in question. */ register in question. */
varray_type ssa_rename_from; varray_type ssa_rename_from;
...@@ -828,7 +825,6 @@ apply_delayed_renames (c) ...@@ -828,7 +825,6 @@ apply_delayed_renames (c)
{ {
int new_limit = new_regno * 5 / 4; int new_limit = new_regno * 5 / 4;
VARRAY_GROW (ssa_definition, new_limit); VARRAY_GROW (ssa_definition, new_limit);
VARRAY_GROW (ssa_uses, new_limit);
} }
VARRAY_RTX (ssa_definition, new_regno) = r->set_insn; VARRAY_RTX (ssa_definition, new_regno) = r->set_insn;
...@@ -1084,7 +1080,6 @@ rename_block (bb, idom) ...@@ -1084,7 +1080,6 @@ rename_block (bb, idom)
abort(); abort();
*phi_alternative (phi, bb) = reg; *phi_alternative (phi, bb) = reg;
/* ??? Mark for a new ssa_uses entry. */
} }
insn = NEXT_INSN (insn); insn = NEXT_INSN (insn);
...@@ -1124,7 +1119,6 @@ rename_registers (nregs, idom) ...@@ -1124,7 +1119,6 @@ rename_registers (nregs, idom)
int *idom; int *idom;
{ {
VARRAY_RTX_INIT (ssa_definition, nregs * 3, "ssa_definition"); VARRAY_RTX_INIT (ssa_definition, nregs * 3, "ssa_definition");
VARRAY_RTX_INIT (ssa_uses, nregs * 3, "ssa_uses");
ssa_rename_from_initialize (); ssa_rename_from_initialize ();
ssa_rename_to_pseudo = (rtx *) alloca (nregs * sizeof(rtx)); ssa_rename_to_pseudo = (rtx *) alloca (nregs * sizeof(rtx));
...@@ -2222,7 +2216,6 @@ convert_from_ssa() ...@@ -2222,7 +2216,6 @@ convert_from_ssa()
/* Deallocate the data structures. */ /* Deallocate the data structures. */
VARRAY_FREE (ssa_definition); VARRAY_FREE (ssa_definition);
VARRAY_FREE (ssa_uses);
ssa_rename_from_free (); ssa_rename_from_free ();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment