From 24838d3fed690e66437b90c4ff5944976dcfee6d Mon Sep 17 00:00:00 2001 From: hubicka Date: Mon, 8 Jan 2007 13:13:09 +0000 Subject: * tree-ssa-forwprop.c (forward_propagate_into_cond, tree_ssa_forward_propagate_single_use_va): Release defs of propagated statement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120580 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree-ssa-forwprop.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/tree-ssa-forwprop.c') diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c index 638224a8035..a5267ae3970 100644 --- a/gcc/tree-ssa-forwprop.c +++ b/gcc/tree-ssa-forwprop.c @@ -561,6 +561,7 @@ forward_propagate_into_cond (tree cond_expr) tree def = SSA_NAME_DEF_STMT (test_var); block_stmt_iterator bsi = bsi_for_stmt (def); bsi_remove (&bsi, true); + release_defs (def); } } @@ -999,7 +1000,10 @@ tree_ssa_forward_propagate_single_use_vars (void) { bool some = false; if (forward_propagate_addr_expr (stmt, &some)) - bsi_remove (&bsi, true); + { + release_defs (stmt); + bsi_remove (&bsi, true); + } else bsi_next (&bsi); if (some) -- cgit v1.2.1