Commit 67255edf by Sebastian Pop Committed by Sebastian Pop

graphite-interchange.c (memory_stride_in_loop): Delete p1, lma and new_cstr.

2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
	and new_cstr.

From-SVN: r154609
parent 14ba996b
2009-10-17 Sebastian Pop <sebastian.pop@amd.com> 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
* graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
and new_cstr.
2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
* graphite-dependences.c (dependence_polyhedron_1): Remove * graphite-dependences.c (dependence_polyhedron_1): Remove
unused gdim dimensions from the DDR polyhedron. unused gdim dimensions from the DDR polyhedron.
......
...@@ -168,6 +168,8 @@ memory_stride_in_loop (Value stride, graphite_dim_t depth, poly_dr_p pdr) ...@@ -168,6 +168,8 @@ memory_stride_in_loop (Value stride, graphite_dim_t depth, poly_dr_p pdr)
ppl_set_coef (lma, dim_L1, -1); ppl_set_coef (lma, dim_L1, -1);
ppl_new_Constraint (&new_cstr, lma, PPL_CONSTRAINT_TYPE_EQUAL); ppl_new_Constraint (&new_cstr, lma, PPL_CONSTRAINT_TYPE_EQUAL);
ppl_Pointset_Powerset_C_Polyhedron_add_constraint (p1, new_cstr); ppl_Pointset_Powerset_C_Polyhedron_add_constraint (p1, new_cstr);
ppl_delete_Linear_Expression (lma);
ppl_delete_Constraint (new_cstr);
} }
/* Now intersect all the parts to get the polyhedron P1: /* Now intersect all the parts to get the polyhedron P1:
...@@ -254,10 +256,7 @@ memory_stride_in_loop (Value stride, graphite_dim_t depth, poly_dr_p pdr) ...@@ -254,10 +256,7 @@ memory_stride_in_loop (Value stride, graphite_dim_t depth, poly_dr_p pdr)
} }
/* P1 = P1 inter P2. */ /* P1 = P1 inter P2. */
{ ppl_Pointset_Powerset_C_Polyhedron_intersection_assign (p1, p2);
ppl_Pointset_Powerset_C_Polyhedron_intersection_assign (p1, p2);
ppl_delete_Pointset_Powerset_C_Polyhedron (p2);
}
/* Maximise the expression L2 - L1. */ /* Maximise the expression L2 - L1. */
{ {
...@@ -265,8 +264,11 @@ memory_stride_in_loop (Value stride, graphite_dim_t depth, poly_dr_p pdr) ...@@ -265,8 +264,11 @@ memory_stride_in_loop (Value stride, graphite_dim_t depth, poly_dr_p pdr)
ppl_set_coef (le, dim_L2, 1); ppl_set_coef (le, dim_L2, 1);
ppl_set_coef (le, dim_L1, -1); ppl_set_coef (le, dim_L1, -1);
ppl_max_for_le_pointset (p1, le, stride); ppl_max_for_le_pointset (p1, le, stride);
ppl_delete_Linear_Expression (le);
} }
ppl_delete_Pointset_Powerset_C_Polyhedron (p1);
ppl_delete_Pointset_Powerset_C_Polyhedron (p2);
ppl_delete_Linear_Expression (le);
} }
/* Returns true when it is profitable to interchange time dimensions DEPTH1 /* Returns true when it is profitable to interchange time dimensions DEPTH1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment