Patchwork Fix PR54886

login
register
mail settings
Submitter Richard Guenther
Date Dec. 7, 2012, 1:09 p.m.
Message ID <alpine.LNX.2.00.1212071409120.5397@zhemvz.fhfr.qr>
Download mbox | patch
Permalink /patch/204479/
State New
Headers show

Comments

Richard Guenther - Dec. 7, 2012, 1:09 p.m.
This fixes PR54886 - ISL is anal about freeing all its memory.

Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

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.

Patch

Index: gcc/graphite-sese-to-poly.c
===================================================================
--- gcc/graphite-sese-to-poly.c	(revision 194296)
+++ gcc/graphite-sese-to-poly.c	(working copy)
@@ -1058,6 +1058,8 @@  build_loop_iteration_domains (scop_p sco
 	  c = isl_constraint_set_constant (c, v);
 	  inner = isl_set_add_constraint (inner, c);
 	}
+      else
+	isl_pw_aff_free (aff);
     }
   else
     gcc_unreachable ();