diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-15 07:10:20 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-15 07:10:20 +0000 |
commit | 19eec579a0bc51a7691aa62f65d3f3040b2a94d3 (patch) | |
tree | 3e08ed92479684ba002d8c7a8eaed82caf2a98c4 /gcc/graphite-interchange.c | |
parent | e98472f06dec3b0d227a05f058a02ad0b1ff9f9b (diff) | |
download | gcc-19eec579a0bc51a7691aa62f65d3f3040b2a94d3.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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150789 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-interchange.c')
-rw-r--r-- | gcc/graphite-interchange.c | 29 |
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: |