Commit 92a6bdbd by Sebastian Pop Committed by Sebastian Pop

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
parent 1d4af1e8
2008-01-12 Sebastian Pop <sebastian.pop@amd.com> 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. * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
(parallelize_loops): Don't parallelize irreducible components. (parallelize_loops): Don't parallelize irreducible components.
......
...@@ -1723,6 +1723,11 @@ gen_parallel_loop (struct loop *loop, htab_t reduction_list, ...@@ -1723,6 +1723,11 @@ gen_parallel_loop (struct loop *loop, htab_t reduction_list,
expander to do it). */ expander to do it). */
cancel_loop_tree (loop); 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 /* 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 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 cause troubles with further analyses not being able to deal with the
......
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