OSDN Git Service

PR tree-optimization/42906
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Apr 2010 15:18:18 +0000 (15:18 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Apr 2010 15:18:18 +0000 (15:18 +0000)
commit9adc5680a8bf87c8867136f10390b4b2ec9b8aa6
tree73ad6f631ae8adc1be1e42fdd9d31ef2804d19d8
parentb65b2db50bd42225ba7b776b7b14c89609d9cf6a
PR tree-optimization/42906

* tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add IGNORE_SELF
argument; set visited_control_parents for fully processed BBs.
(find_obviously_necessary_stmts): Update call of
mark_control_dependent_edges_necessary.
(propagate_necessity): Likewise; handle PHI edges more curefully.

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

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