]> git.ipfire.org Git - thirdparty/gcc.git/commit
2014-12-10 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Dec 2014 09:29:05 +0000 (09:29 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Dec 2014 09:29:05 +0000 (09:29 +0000)
commit75fa2041c6b7d3285d72180002b61bd661131b62
tree9a4757f31af85f3b526ae2e96a7b2978bf95593a
parentdc958a452b08c082bce2c4143fe4aca118f33646
2014-12-10  Richard Biener  <rguenther@suse.de>

PR tree-optimization/64191
* tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not
mark clobbers as necessary.
(eliminate_unnecessary_stmts): Keep clobbers live if we can.

* g++.dg/pr64191.C: Make sure we can DCE empty loops with
indirect clobbers.

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