re PR tree-optimization/19831 (Missing DSE/malloc/free optimization)
authorRichard Guenther <rguenther@suse.de>
Thu, 8 Sep 2011 09:21:39 +0000 (09:21 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 8 Sep 2011 09:21:39 +0000 (09:21 +0000)
commitc22c0db26ad16673415d7523781fcf80c8e545ba
treecacd1b123bb8053812cddbd152f5ddd2121054b5
parent88b7601303a76eae0d7b831014cba0ff96360e73
re PR tree-optimization/19831 (Missing DSE/malloc/free optimization)

2011-09-08  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/19831
* tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
allocation functions as necessary.

* gcc.dg/tree-ssa/ssa-dce-8.c: New testcase.

From-SVN: r178683
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-8.c [new file with mode: 0644]
gcc/tree-ssa-dce.c