summaryrefslogtreecommitdiff
path: root/gcc/tree-if-conv.c
diff options
context:
space:
mode:
authordpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-22 23:01:09 +0000
committerdpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-22 23:01:09 +0000
commite07ee0de593e559ab1d94d0cf5edd4cf1bd0a9f1 (patch)
treed52d6917ede5bba5a5f62949aa99ef60401cabba /gcc/tree-if-conv.c
parent9b482bc6affd895426397e8afe6a039fa3527bce (diff)
downloadgcc-e07ee0de593e559ab1d94d0cf5edd4cf1bd0a9f1.tar.gz
* tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91045 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-if-conv.c')
-rw-r--r--gcc/tree-if-conv.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c
index a9261017b98..0eee6d9acaf 100644
--- a/gcc/tree-if-conv.c
+++ b/gcc/tree-if-conv.c
@@ -657,11 +657,13 @@ add_to_dst_predicate_list (struct loop * loop, basic_block bb,
static void
clean_predicate_lists (struct loop *loop)
{
-#ifdef ENABLE_CHECKING
- gcc_assert (loop->num_nodes == 2 || loop->num_nodes == 1);
-#endif
- loop->header->aux = NULL;
- loop->latch->aux = NULL;
+ basic_block *bb;
+ unsigned int i;
+ bb = get_loop_body (loop);
+ for (i = 0; i < loop->num_nodes; i++)
+ bb[i]->aux = NULL;
+
+ free (bb);
}
/* Basic block BB has two predecessors. Using predecessor's aux field, set