diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-08 13:13:09 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-08 13:13:09 +0000 |
commit | 24838d3fed690e66437b90c4ff5944976dcfee6d (patch) | |
tree | 965f2c80a3659fa69f31c60546ba816d956b6cfe /gcc/tree-ssa-forwprop.c | |
parent | b9b64cb7f34381e2131f5ff5abee2ed35ca6b2b0 (diff) | |
download | gcc-24838d3fed690e66437b90c4ff5944976dcfee6d.tar.gz |
* 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
Diffstat (limited to 'gcc/tree-ssa-forwprop.c')
-rw-r--r-- | gcc/tree-ssa-forwprop.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) |