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
This commit is contained in:
Jan Hubicka 2004-09-15 16:15:36 +02:00 committed by Jan Hubicka
parent fe7139acb1
commit 87527e4bcd
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2004-09-15 Jan Hubicka <jh@suse.cz> 2004-09-15 Jan Hubicka <jh@suse.cz>
* 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. * tree-cfg.c (remove_bb): Release SSA defs.
2004-09-15 Kazu Hirata <kazu@cs.umass.edu> 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>

View File

@ -686,12 +686,14 @@ eliminate_tail_call (struct tailcall *t)
bsi_next (&bsi); bsi_next (&bsi);
while (!bsi_end_p (bsi)) while (!bsi_end_p (bsi))
{ {
tree t = bsi_stmt (bsi);
/* Do not remove the return statement, so that redirect_edge_and_branch /* Do not remove the return statement, so that redirect_edge_and_branch
sees how the block ends. */ sees how the block ends. */
if (TREE_CODE (bsi_stmt (bsi)) == RETURN_EXPR) if (TREE_CODE (t) == RETURN_EXPR)
break; break;
bsi_remove (&bsi); bsi_remove (&bsi);
release_defs (t);
} }
/* Replace the call by a jump to the start of function. */ /* 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); bsi_remove (&t->call_bsi);
release_defs (call);
} }
/* Optimizes the tailcall described by T. If OPT_TAILCALLS is true, also /* Optimizes the tailcall described by T. If OPT_TAILCALLS is true, also