[PATCH] [4/n] Fix minor SSA_NAME leaks
authorJeff Law <law@gcc.gnu.org>
Thu, 8 Oct 2015 23:19:35 +0000 (17:19 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 8 Oct 2015 23:19:35 +0000 (17:19 -0600)
        * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
        release_defs.

From-SVN: r228627

gcc/tree-ssa-loop-im.c

index 9b2436f56b051218e15f761f34aefe8d15e2e5b8..603e6d49d51dbcea464dbf9b97fb421a7793f5c7 100644 (file)
@@ -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;
     }