re PR tree-optimization/59745 (internal compiler error: tree check: expected tree...
authorJakub Jelinek <jakub@redhat.com>
Fri, 10 Jan 2014 20:37:52 +0000 (21:37 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 10 Jan 2014 20:37:52 +0000 (21:37 +0100)
PR tree-optimization/59745
* tree-predcom.c (tree_predictive_commoning_loop): Call
free_affine_expand_cache if giving up because components is NULL.

From-SVN: r206540

gcc/ChangeLog
gcc/tree-predcom.c

index 6be05570c14a93602164362f253e2d1bf4225ad3..73a7edff175625d5de871593a2d718e58e2db753 100644 (file)
@@ -1,5 +1,9 @@
 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
 
+       PR tree-optimization/59745
+       * tree-predcom.c (tree_predictive_commoning_loop): Call
+       free_affine_expand_cache if giving up because components is NULL.
+
        * target-globals.c (save_target_globals): Allocate < 4KB structs using
        GC in payload of target_globals struct instead of allocating them on
        the heap and the larger structs separately using GC.
index 7169b2f68f5656560e06fac9ff4e2d22c6853fcf..730bad46aa4290913b9784d46cdf931d049444e6 100644 (file)
@@ -2447,6 +2447,7 @@ tree_predictive_commoning_loop (struct loop *loop)
   if (!components)
     {
       free_data_refs (datarefs);
+      free_affine_expand_cache (&name_expansions);
       return false;
     }