re PR tree-optimization/54886 (FAIL: gcc.dg/graphite/pr(42521|42771).c (internal...
authorRichard Biener <rguenther@suse.de>
Fri, 7 Dec 2012 13:16:28 +0000 (13:16 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 7 Dec 2012 13:16:28 +0000 (13:16 +0000)
2012-12-07  Richard Biener  <rguenther@suse.de>

PR tree-optimization/54886
* graphite-sese-to-poly.c (build_loop_iteration_domains): Properly
free all memory.

From-SVN: r194302

gcc/ChangeLog
gcc/graphite-sese-to-poly.c

index 1c15ab91bf95ad12284b19120faef0fec7f04614..132112c2151bee774040ff46d3938c5b74e23019 100644 (file)
@@ -1,3 +1,9 @@
+2012-12-07  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/54886
+       * graphite-sese-to-poly.c (build_loop_iteration_domains): Properly
+       free all memory.
+
 2012-12-07  Martin Jambor  <mjambor@suse.cz>
 
        PR middle-end/55078
index 4e95f78bbfab454547947949f823a6f5c3e457f1..8fa41dc372e6e50eb04d6c27e36696af28397b47 100644 (file)
@@ -1058,6 +1058,8 @@ build_loop_iteration_domains (scop_p scop, struct loop *loop,
          c = isl_constraint_set_constant (c, v);
          inner = isl_set_add_constraint (inner, c);
        }
+      else
+       isl_pw_aff_free (aff);
     }
   else
     gcc_unreachable ();