Skip to content
Snippets Groups Projects
Commit b1a0b3b4 authored by Jan Hubicka's avatar Jan Hubicka Committed by Jan Hubicka
Browse files

re PR tree-optimization/42906 (Empty loop not removed)

	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.

From-SVN: r158004
parent 1b10fc20
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment