re PR tree-optimization/64191 (indirect clobbers messes up dead code elimination...
authorRichard Biener <rguenther@suse.de>
Wed, 10 Dec 2014 09:29:05 +0000 (09:29 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 10 Dec 2014 09:29:05 +0000 (09:29 +0000)
commit128227683ace7606605d204bd75b851a22043d6d
tree9a4757f31af85f3b526ae2e96a7b2978bf95593a
parent092444af0474ed194abe53ea7cbd950dd7e2cdbd
re PR tree-optimization/64191 (indirect clobbers messes up dead code elimination in loop calling dtor)

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.

From-SVN: r218566
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr64191.C [new file with mode: 0644]
gcc/tree-ssa-dce.c