diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-12 17:44:23 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-12 17:44:23 +0000 |
commit | 39760a870446041123cae7929e8c12932536ccec (patch) | |
tree | f50e6dc79484fad7c3b75ea106712b82ba60cda9 /gcc/tree-if-conv.c | |
parent | e0ac42061cbe30e46a9d958b1bccd4e8f530228b (diff) | |
download | gcc-39760a870446041123cae7929e8c12932536ccec.tar.gz |
PR tree-optimization/48975
* tree-if-conv.c (combine_blocks): Call free_bb_predicate
on all bbs here and free and clear ifc_bbs at the end.
* gcc.dg/pr48975.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173709 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-if-conv.c')
-rw-r--r-- | gcc/tree-if-conv.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c index 450ddb294b0..bf1c8cdbc47 100644 --- a/gcc/tree-if-conv.c +++ b/gcc/tree-if-conv.c @@ -1,5 +1,5 @@ /* If-conversion for vectorizer. - Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 + Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. Contributed by Devang Patel <dpatel@apple.com> @@ -1637,6 +1637,7 @@ combine_blocks (struct loop *loop) for (i = 0; i < orig_loop_num_nodes; i++) { bb = ifc_bbs[i]; + free_bb_predicate (bb); if (bb_with_exit_edge_p (loop, bb)) { exit_bb = bb; @@ -1712,6 +1713,9 @@ combine_blocks (struct loop *loop) && exit_bb != loop->header && can_merge_blocks_p (loop->header, exit_bb)) merge_blocks (loop->header, exit_bb); + + free (ifc_bbs); + ifc_bbs = NULL; } /* If-convert LOOP when it is legal. For the moment this pass has no |