This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[RFC] Fix for autopar
- From: "Sebastian Pop" <sebpop at gmail dot com>
- To: "Zdenek Dvorak" <rakdver at kam dot mff dot cuni dot cz>, "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 8 Jan 2008 16:02:14 -0600
- Subject: [RFC] Fix for autopar
Hi,
Here is a patch for fixing an ICE occurring during the compilation of
bzip2 with -O2 -ftree-parallelize-loops=2. The patch resets the loop bound
estimates that contain a field referencing a statement that gets removed
during autopar:
/* The structure describing a bound on number of iterations of a loop. */
struct nb_iter_bound GTY ((chain_next ("%h.next")))
{
/* The statement STMT is executed at most ... */
tree stmt;
The patch is not tested, except on the bzip2. I'm just checking for better
ways to fix this ICE, and for comments before regstrap.
--
Sebastian
AMD - GNU Tools
Index: tree-parloops.c
===================================================================
--- tree-parloops.c (revision 131401)
+++ tree-parloops.c (working copy)
@@ -1749,6 +1749,10 @@
verify_loop_closed_ssa ();
}
+ if (changed)
+ FOR_EACH_LOOP (li, loop, 0)
+ free_numbers_of_iterations_estimates_loop (loop);
+
htab_delete (reduction_list);
return changed;
}