[PATCH] [1/n] Fix minor SSA_NAME leaks

* tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
	release_ssa_name.  Fix typo in comment.

From-SVN: r228619
This commit is contained in:
Jeff Law 2015-10-08 11:50:44 -06:00 committed by Jeff Law
parent 25662751d1
commit d1acc3f4d2
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2015-10-08 Jeff Law <law@redhat.com>
* tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
release_ssa_name. Fix typo in comment.
2015-10-08 Nathan Sidwell <nathan@acm.org>
* config/nvptx/nvptx.h (struct machine_function): Add comment.

View file

@ -511,10 +511,13 @@ factor_out_conditional_conversion (edge e0, edge e1, gphi *phi,
/* Remove the old cast(s) that has single use. */
gsi_for_def = gsi_for_stmt (arg0_def_stmt);
gsi_remove (&gsi_for_def, true);
release_defs (arg0_def_stmt);
if (arg1_def_stmt)
{
gsi_for_def = gsi_for_stmt (arg1_def_stmt);
gsi_remove (&gsi_for_def, true);
release_defs (arg1_def_stmt);
}
add_phi_arg (newphi, new_arg0, e0, locus);
@ -527,7 +530,7 @@ factor_out_conditional_conversion (edge e0, edge e1, gphi *phi,
gsi = gsi_after_labels (gimple_bb (phi));
gsi_insert_before (&gsi, new_stmt, GSI_SAME_STMT);
/* Remove he original PHI stmt. */
/* Remove the original PHI stmt. */
gsi = gsi_for_stmt (phi);
gsi_remove (&gsi, true);
return true;