aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2014-02-17 15:23:19 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2014-02-17 15:23:19 +0000
commitc742772ca24ded6be152bcfd86c0925484a08c0a (patch)
tree37b038e230ebbed27f62822ef39a0b9f49bcfe97 /gcc
parent0492158e94e2e4dd26b9b8b9e41635ce8c64088c (diff)
downloadgcc-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')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-inline.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index be303a4..dcd4614 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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.
+
+2014-02-17 Richard Biener <rguenther@suse.de>
+
* tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
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