diff mbox

[4/n] Fix minor SSA_NAME leaks

Message ID 5616FA4C.7090709@redhat.com
State New
Headers show

Commit Message

Jeff Law Oct. 8, 2015, 11:20 p.m. UTC
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 mbox

Patch

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;
     }