Don't handle BBs with more than 2 preds or succs.

2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>

	* tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
	than 2 predecessors or more than 2 successors.

From-SVN: r159884
This commit is contained in:
Sebastian Pop 2010-05-26 16:46:39 +00:00 committed by Sebastian Pop
parent 6d7950341a
commit bc447143dc
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
* tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
than 2 predecessors or more than 2 successors.
2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
* tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion

View File

@ -460,6 +460,10 @@ if_convertible_bb_p (struct loop *loop, basic_block bb, basic_block exit_bb)
if (dump_file && (dump_flags & TDF_DETAILS))
fprintf (dump_file, "----------[%d]-------------\n", bb->index);
if (EDGE_COUNT (bb->preds) > 2
|| EDGE_COUNT (bb->succs) > 2)
return false;
if (exit_bb)
{
if (bb != loop->latch)