This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] [4/n] Fix minor SSA_NAME leaks
- From: Jeff Law <law at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 8 Oct 2015 17:20:44 -0600
- Subject: Re: [PATCH] [4/n] Fix minor SSA_NAME leaks
- Authentication-results: sourceware.org; auth=none
- References: <5616F9C2 dot 1000105 at redhat dot com>
On 10/08/2015 05:18 PM, Jeff Law wrote:
Another, this time in tree-ssa-loop-im. In this case it's just a
missing release_defs for a statement we know won't have virtual operands.
As with the others, I've got a reduced testcase and will be trying to
figure out how to best utilize it.
Bootstrapped & regression tested on x86_64-linux-gnu. Installed on the
trunk.
Whoops. Forgot the actual change.
Jeff
commit e0e4b75785305e46a8419814757f0de30e258764
Author: law <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Thu Oct 8 23:19:35 2015 +0000
[PATCH] [4/n] Fix minor SSA_NAME leaks
* tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
release_defs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228627 138bc75d-0d04-0410-961f-82ee72b054a4
diff --git a/gcc/tree-ssa-loop-im.c b/gcc/tree-ssa-loop-im.c
index 9b2436f..603e6d4 100644
--- a/gcc/tree-ssa-loop-im.c
+++ b/gcc/tree-ssa-loop-im.c
@@ -983,7 +983,9 @@ rewrite_bittest (gimple_stmt_iterator *bsi)
rsi = *bsi;
gsi_insert_before (bsi, stmt1, GSI_NEW_STMT);
gsi_insert_before (&rsi, stmt2, GSI_SAME_STMT);
+ gimple *to_release = gsi_stmt (rsi);
gsi_remove (&rsi, true);
+ release_defs (to_release);
return stmt1;
}