Commit eedfcb09 by Devang Patel Committed by Devang Patel

* tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.

From-SVN: r91045
parent e0ddb4bd
2004-11-16 Devang Patel <dpatel@apple.com> 2004-11-22 Devang Patel <dpatel@apple.com>
* tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
2004-11-22 Devang Patel <dpatel@apple.com>
* tree-if-conv.c (if_convertable_phi_p): Rename to ... * tree-if-conv.c (if_convertable_phi_p): Rename to ...
(if_convertible_phi_p): ... new name. (if_convertible_phi_p): ... new name.
......
...@@ -657,11 +657,13 @@ add_to_dst_predicate_list (struct loop * loop, basic_block bb, ...@@ -657,11 +657,13 @@ add_to_dst_predicate_list (struct loop * loop, basic_block bb,
static void static void
clean_predicate_lists (struct loop *loop) clean_predicate_lists (struct loop *loop)
{ {
#ifdef ENABLE_CHECKING basic_block *bb;
gcc_assert (loop->num_nodes == 2 || loop->num_nodes == 1); unsigned int i;
#endif bb = get_loop_body (loop);
loop->header->aux = NULL; for (i = 0; i < loop->num_nodes; i++)
loop->latch->aux = NULL; bb[i]->aux = NULL;
free (bb);
} }
/* Basic block BB has two predecessors. Using predecessor's aux field, set /* Basic block BB has two predecessors. Using predecessor's aux field, set
......
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