aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSebastian Pop <sebastian.pop@amd.com>2008-01-16 02:46:46 +0000
committerSebastian Pop <spop@gcc.gnu.org>2008-01-16 02:46:46 +0000
commit92a6bdbd109be6d6b270205fd57045c1bf4862b8 (patch)
treef9eae7f4746329d2835ea7805123c03c5f8214ba /gcc
parent1d4af1e827fad674218523d2e91c6aed1f5729c4 (diff)
downloadgcc-92a6bdbd109be6d6b270205fd57045c1bf4862b8.zip
gcc-92a6bdbd109be6d6b270205fd57045c1bf4862b8.tar.gz
gcc-92a6bdbd109be6d6b270205fd57045c1bf4862b8.tar.bz2
tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
2008-01-12 Sebastian Pop <sebastian.pop@amd.com> * tree-parloops.c (gen_parallel_loop): Free loop bound estimations. From-SVN: r131562
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree-parloops.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b8c9e96..cf514a3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
+ * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
+
+2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
+
* tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
(parallelize_loops): Don't parallelize irreducible components.
diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c
index 3b3176c..b33940e 100644
--- a/gcc/tree-parloops.c
+++ b/gcc/tree-parloops.c
@@ -1723,6 +1723,11 @@ gen_parallel_loop (struct loop *loop, htab_t reduction_list,
expander to do it). */
cancel_loop_tree (loop);
+ /* Free loop bound estimations that could contain references to
+ removed statements. */
+ FOR_EACH_LOOP (li, loop, 0)
+ free_numbers_of_iterations_estimates_loop (loop);
+
/* Expand the parallel constructs. We do it directly here instead of running
a separate expand_omp pass, since it is more efficient, and less likely to
cause troubles with further analyses not being able to deal with the