[PATCH] [2/n] Fix minor SSA_NAME leaks
authorJeff Law <law@redhat.com>
Thu, 8 Oct 2015 20:27:38 +0000 (14:27 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 8 Oct 2015 20:27:38 +0000 (14:27 -0600)
* tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
release_defs.

From-SVN: r228624

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

index 428649149456d6d84437bbada6d172eef9254a93..64309c19900635be60ba451772fc1dfa004561d7 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 ac9c05a4e7b6f5980741bbdcc8f3cd556d6060eb..80ebdb6221286468719c1ae4b3305acddfe6b715 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;
            }