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)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 00:45:32 +0000 (09:45 +0900)
commitc331b51269bc9283c5d8f6360064881308345c58
treeb260289569fd877561ee6e0920877a2dc8524f22
parentd1e919e020030a76554ec56252becf6d9be6949a
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