diff options
author | Richard Biener <rguenther@suse.de> | 2014-02-17 15:23:19 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2014-02-17 15:23:19 +0000 |
commit | c742772ca24ded6be152bcfd86c0925484a08c0a (patch) | |
tree | 37b038e230ebbed27f62822ef39a0b9f49bcfe97 /gcc/tree-inline.c | |
parent | 0492158e94e2e4dd26b9b8b9e41635ce8c64088c (diff) | |
download | gcc-c742772ca24ded6be152bcfd86c0925484a08c0a.zip gcc-c742772ca24ded6be152bcfd86c0925484a08c0a.tar.gz gcc-c742772ca24ded6be152bcfd86c0925484a08c0a.tar.bz2 |
tree-inline.c (expand_call_inline): Release the virtual operand defined by the call we are about to inline.
2014-02-17 Richard Biener <rguenther@suse.de>
* tree-inline.c (expand_call_inline): Release the virtual
operand defined by the call we are about to inline.
From-SVN: r207825
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 439ef4c..16c0622 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -4364,6 +4364,9 @@ expand_call_inline (basic_block bb, gimple stmt, copy_body_data *id) /* Unlink the calls virtual operands before replacing it. */ unlink_stmt_vdef (stmt); + if (gimple_vdef (stmt) + && TREE_CODE (gimple_vdef (stmt)) == SSA_NAME) + release_ssa_name (gimple_vdef (stmt)); /* If the inlined function returns a result that we care about, substitute the GIMPLE_CALL with an assignment of the return |