From 87527e4bcd88f740b1079d9dc751f3d637d066a9 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 15 Sep 2004 16:15:36 +0200 Subject: [PATCH] tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes. * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes. * tree-tailcall.c (eliminate_tail_call): Release SSA name. From-SVN: r87554 --- gcc/ChangeLog | 3 +++ gcc/tree-tailcall.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0ec5d0c5105..c7210971c2e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2004-09-15 Jan Hubicka + * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes. + * tree-tailcall.c (eliminate_tail_call): Release SSA name. + * tree-cfg.c (remove_bb): Release SSA defs. 2004-09-15 Kazu Hirata diff --git a/gcc/tree-tailcall.c b/gcc/tree-tailcall.c index cfe9dfaacc1..e1c1f672ac6 100644 --- a/gcc/tree-tailcall.c +++ b/gcc/tree-tailcall.c @@ -686,12 +686,14 @@ eliminate_tail_call (struct tailcall *t) bsi_next (&bsi); while (!bsi_end_p (bsi)) { + tree t = bsi_stmt (bsi); /* Do not remove the return statement, so that redirect_edge_and_branch sees how the block ends. */ - if (TREE_CODE (bsi_stmt (bsi)) == RETURN_EXPR) + if (TREE_CODE (t) == RETURN_EXPR) break; bsi_remove (&bsi); + release_defs (t); } /* Replace the call by a jump to the start of function. */ @@ -775,6 +777,7 @@ eliminate_tail_call (struct tailcall *t) } bsi_remove (&t->call_bsi); + release_defs (call); } /* Optimizes the tailcall described by T. If OPT_TAILCALLS is true, also -- 2.30.2