re PR tree-optimization/33302 (dead-store not eliminated)
commit515f36ebd9df15ba503f02dbc77a32183ec03664
authorRichard Guenther <rguenther@suse.de>
Thu, 6 Sep 2007 09:05:58 +0000 (6 09:05 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 6 Sep 2007 09:05:58 +0000 (6 09:05 +0000)
treedad0e8d38805913fe334995e506eaac1d8d4144d
parent47de45c6fc7adcf626af5499cb39b0ca43b870c3
re PR tree-optimization/33302 (dead-store not eliminated)

2007-09-06  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/33302
* tree-ssa-dse.c (tree_ssa_dse): Connect infinite loops
to the exit block before doing the post-dominator walk.
* domwalk.c (walk_dominator_tree): The exit block is
interesting even if it is not reachable.

* gcc.dg/tree-ssa/ssa-dse-11.c: New testcase.

From-SVN: r128180
gcc/ChangeLog
gcc/domwalk.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-11.c [new file with mode: 0644]