diff options
| author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-15 14:15:36 +0000 |
|---|---|---|
| committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-15 14:15:36 +0000 |
| commit | 2d1c59766105d5d61f9ec9f79bb87ec1d65e974e (patch) | |
| tree | 9c8803068628a83f91ddacdcb2905f0a538b5feb /gcc/tree-tailcall.c | |
| parent | 3a2cd2a505c77e9ddb8d2e2c729fea7b8a087f31 (diff) | |
| download | ppe42-gcc-2d1c59766105d5d61f9ec9f79bb87ec1d65e974e.tar.gz ppe42-gcc-2d1c59766105d5d61f9ec9f79bb87ec1d65e974e.zip | |
* tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
* tree-tailcall.c (eliminate_tail_call): Release SSA name.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87554 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-tailcall.c')
| -rw-r--r-- | gcc/tree-tailcall.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 |

