Commit 6c1d60a2 by Richard Biener Committed by Richard Biener

tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary restriction on…

tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary restriction on threading to a loop header.

2016-08-05  Richard Biener  <rguenther@suse.de>

	* tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
	restriction on threading to a loop header.

From-SVN: r239164
parent ee281008
2016-08-05 Richard Biener <rguenther@suse.de> 2016-08-05 Richard Biener <rguenther@suse.de>
* tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
restriction on threading to a loop header.
2016-08-05 Richard Biener <rguenther@suse.de>
* tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p. * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
* cfghooks.c (force_nonfallthru): If we ended up splitting a latch * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
adjust loop info accordingly. adjust loop info accordingly.
......
...@@ -1531,10 +1531,8 @@ thread_block_1 (basic_block bb, bool noloop_only, bool joiners) ...@@ -1531,10 +1531,8 @@ thread_block_1 (basic_block bb, bool noloop_only, bool joiners)
threading path that crosses loop boundaries. We do not try threading path that crosses loop boundaries. We do not try
and thread this elsewhere, so just cancel the jump threading and thread this elsewhere, so just cancel the jump threading
request by clearing the AUX field now. */ request by clearing the AUX field now. */
if ((bb->loop_father != e2->src->loop_father if (bb->loop_father != e2->src->loop_father
&& !loop_exit_edge_p (e2->src->loop_father, e2)) && !loop_exit_edge_p (e2->src->loop_father, e2))
|| (e2->src->loop_father != e2->dest->loop_father
&& !loop_exit_edge_p (e2->src->loop_father, e2)))
{ {
/* Since this case is not handled by our special code /* Since this case is not handled by our special code
to thread through a loop header, we must explicitly to thread through a loop header, we must explicitly
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment