Commit fa788bb4 by Jeff Law Committed by Jeff Law

tree-ssa-threadupdate.c (thread_through_all_blocks): Do not clobber the loop…

tree-ssa-threadupdate.c (thread_through_all_blocks): Do not clobber the loop structure thread_block was unsuccessful.

	* tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
	clobber the loop structure thread_block was unsuccessful.  If
	thread_block was unsuccessful, cleanup appropriately.

From-SVN: r205459
parent df7a98a6
2013-11-27 Jeff Law <law@redhat.com>
* tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
clobber the loop structure thread_block was unsuccessful. If
thread_block was unsuccessful, cleanup appropriately.
2013-11-27 Chen Liqin <liqin.gcc@gmail.com> 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
* config/score/score.h (REG_CLASS_FROM_LETTER): Delete. * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
...@@ -1676,13 +1676,20 @@ thread_through_all_blocks (bool may_peel_loop_headers) ...@@ -1676,13 +1676,20 @@ thread_through_all_blocks (bool may_peel_loop_headers)
{ {
struct loop *loop = (*path)[0]->e->dest->loop_father; struct loop *loop = (*path)[0]->e->dest->loop_father;
retval |= thread_block ((*path)[0]->e->dest, false); if (thread_block ((*path)[0]->e->dest, false))
e->aux = NULL; {
/* This jump thread likely totally scrambled this loop.
/* This jump thread likely totally scrambled this loop. So arrange for it to be fixed up. */
So arrange for it to be fixed up. */ loop->header = NULL;
loop->header = NULL; loop->latch = NULL;
loop->latch = NULL; e->aux = NULL;
}
else
{
delete_jump_thread_path (path);
e->aux = NULL;
ei_next (&ei);
}
} }
} }
else else
......
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