summaryrefslogtreecommitdiff
path: root/gcc/graphite-interchange.c
diff options
context:
space:
mode:
authorSebastian Pop <sebastian.pop@amd.com>2009-08-15 07:10:20 +0000
committerSebastian Pop <spop@gcc.gnu.org>2009-08-15 07:10:20 +0000
commitf263917cbf18bbd28cf79cc6280c5a02e4667337 (patch)
tree3e08ed92479684ba002d8c7a8eaed82caf2a98c4 /gcc/graphite-interchange.c
parentae66da3ba5136550245f96339e8d48d565903cd2 (diff)
downloadgcc-f263917cbf18bbd28cf79cc6280c5a02e4667337.tar.gz
Correct the use of ppl_Pointset_Powerset_C_Polyhedron_maximize.
2009-08-15 Sebastian Pop <sebastian.pop@amd.com> PR middle-end/40981 * graphite-interchange.c (ppl_max_for_le): Moved... * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le. * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of ppl_Pointset_Powerset_C_Polyhedron_maximize. * graphite-ppl.h (ppl_max_for_le): Declared. From-SVN: r150789
Diffstat (limited to 'gcc/graphite-interchange.c')
-rw-r--r--gcc/graphite-interchange.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/gcc/graphite-interchange.c b/gcc/graphite-interchange.c
index c9da69be76e..314f17ca0c4 100644
--- a/gcc/graphite-interchange.c
+++ b/gcc/graphite-interchange.c
@@ -53,35 +53,6 @@ along with GCC; see the file COPYING3. If not see
#include "graphite.h"
#include "graphite-poly.h"
-/* Return in RES the maximum of the linear expression LE on polyhedron PS. */
-
-static void
-ppl_max_for_le (ppl_Pointset_Powerset_C_Polyhedron_t ps,
- ppl_Linear_Expression_t le, Value res)
-{
- ppl_Coefficient_t num, denom;
- Value dv, nv;
- int maximum;
-
- value_init (nv);
- value_init (dv);
- ppl_new_Coefficient (&num);
- ppl_new_Coefficient (&denom);
- ppl_Pointset_Powerset_C_Polyhedron_maximize (ps, le, num, denom, &maximum);
-
- if (maximum)
- {
- ppl_Coefficient_to_mpz_t (num, nv);
- ppl_Coefficient_to_mpz_t (denom, dv);
- value_division (res, nv, dv);
- }
-
- value_clear (nv);
- value_clear (dv);
- ppl_delete_Coefficient (num);
- ppl_delete_Coefficient (denom);
-}
-
/* Builds a linear expression, of dimension DIM, representing PDR's
memory access: