From: Richard Biener Date: Mon, 17 Feb 2014 15:23:19 +0000 (+0000) Subject: tree-inline.c (expand_call_inline): Release the virtual operand defined by the call... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c742772ca24ded6be152bcfd86c0925484a08c0a;p=gcc.git tree-inline.c (expand_call_inline): Release the virtual operand defined by the call we are about to inline. 2014-02-17 Richard Biener * tree-inline.c (expand_call_inline): Release the virtual operand defined by the call we are about to inline. From-SVN: r207825 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index be303a4f967..dcd4614734a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-02-17 Richard Biener + + * tree-inline.c (expand_call_inline): Release the virtual + operand defined by the call we are about to inline. + 2014-02-17 Richard Biener * tree-ssa.c (verify_ssa): If verify_def found an error, ICE. diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 439ef4c2933..16c0622cf75 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