OSDN Git Service

2012-01-03 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Jan 2012 11:54:53 +0000 (11:54 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Jan 2012 11:54:53 +0000 (11:54 +0000)
commitaf988fbcdb045c85ddcf0855e8f09c9d3417fae3
treec7ecc5722ca818dfc6ef3e519e393dabcd83add7
parent131e69c711fbeceb3813a4c1889a436b20d60045
2012-01-03  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/51692
* tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
the LHS of allocation stmts.

* gcc.dg/torture/pr51692.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182838 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr51692.c [new file with mode: 0644]
gcc/tree-ssa-dce.c