Commit 535269f4 by Jan Hubicka Committed by Jan Hubicka

tree-ssa-threadupdate.c (def_split_header_continue_p): Do not escape the loop.


	* tree-ssa-threadupdate.c (def_split_header_continue_p): Do not
	escape the loop.

From-SVN: r192414
parent 46042c01
2012-10-12 Jan Hubicka <jh@suse.cz>
* tree-ssa-threadupdate.c (def_split_header_continue_p): Do not
escape the loop.
2012-10-12 Jan Hubicka <jh@suse.cz>
* web.c (web_main): Do not set DF_RD_PRUNE_DEAD_DEFS flag.
2012-10-12 Aaron Gray <aaronngray.lists@gmail.com>
......@@ -846,9 +846,15 @@ static bool
def_split_header_continue_p (const_basic_block bb, const void *data)
{
const_basic_block new_header = (const_basic_block) data;
return (bb != new_header
&& (loop_depth (bb->loop_father)
>= loop_depth (new_header->loop_father)));
const struct loop *l;
if (bb == new_header
|| loop_depth (bb->loop_father) < loop_depth (new_header->loop_father))
return false;
for (l = bb->loop_father; l; l = loop_outer (l))
if (l == new_header->loop_father)
return true;
return false;
}
/* Thread jumps through the header of LOOP. Returns true if cfg changes.
......
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