Fix PR54886

Submitted by Richard Guenther on Dec. 7, 2012, 1:09 p.m.

Details

Message ID alpine.LNX.2.00.1212071409120.5397@zhemvz.fhfr.qr
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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 ();