This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]