[PATCH] [2/n] Fix minor SSA_NAME leaks
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Oct 2015 20:27:38 +0000 (20:27 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Oct 2015 20:27:38 +0000 (20:27 +0000)
* tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
release_defs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228624 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-ssa-dse.c

index 4286491..64309c1 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-08  Jeff Law  <law@redhat.com>
+
+       * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
+       release_defs.
+
 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
 
        * config/i386/i386.c (ix86_compute_frame_layout): Round up the
index ac9c05a..80ebdb6 100644 (file)
@@ -271,6 +271,7 @@ dse_optimize_stmt (gimple_stmt_iterator *gsi)
                  /* Remove the dead store.  */
                  if (gsi_remove (gsi, true))
                    bitmap_set_bit (need_eh_cleanup, gimple_bb (stmt)->index);
+                 release_defs (stmt);
                }
              break;
            }