diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-28 20:27:56 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-28 20:27:56 +0000 |
commit | 0d6b5db285fd1408d1a0c512b1155b8fccb33f2a (patch) | |
tree | df2d090c75d20d70405ace514e4c3a6184439f11 /gcc/graphite-poly.c | |
parent | 02df46c6eba553dd078478514ec27e03209277f0 (diff) | |
download | gcc-0d6b5db285fd1408d1a0c512b1155b8fccb33f2a.tar.gz |
2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
* graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
(eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
(hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
(free_poly_ddr): New.
(pddr_is_empty): New.
(dependence_polyhedron_1): Now returns a poly_ddr_p.
(dependence_polyhedron): Same. Remove useless gcc_assert.
Remove fprintfs.
(graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
(graphite_carried_dependence_level_k): Call pddr_is_empty.
* graphite-dependences.h (enum poly_dependence_kind): New.
(poly_dr_pair): Renamed poly_ddr. Added a field kind.
(PDRP_SOURCE): Renamed PDDR_SOURCE.
(PDRP_SINK): Renamed PDDR_SINK.
(PDRP_DDP): Renamed PDDR_DDP.
(PDDR_KIND): New.
(free_poly_ddr): Declared.
* graphite-poly.c (new_scop): Use the new hash function names.
* graphite-poly.h (struct scop): Renamed field original_pdr_pairs
into original_pddrs.
(SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151181 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-poly.c')
-rw-r--r-- | gcc/graphite-poly.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/graphite-poly.c b/gcc/graphite-poly.c index a5da8421eac..3bc50d48e7b 100644 --- a/gcc/graphite-poly.c +++ b/gcc/graphite-poly.c @@ -410,8 +410,8 @@ new_scop (void *region) SCOP_CONTEXT (scop) = NULL; scop_set_region (scop, region); SCOP_BBS (scop) = VEC_alloc (poly_bb_p, heap, 3); - SCOP_ORIGINAL_PDR_PAIRS (scop) = htab_create (10, hash_poly_dr_pair_p, - eq_poly_dr_pair_p, free); + SCOP_ORIGINAL_PDDRS (scop) = htab_create (10, hash_poly_ddr_p, + eq_poly_ddr_p, free_poly_ddr); return scop; } @@ -431,7 +431,7 @@ free_scop (scop_p scop) if (SCOP_CONTEXT (scop)) ppl_delete_Pointset_Powerset_C_Polyhedron (SCOP_CONTEXT (scop)); - htab_delete (SCOP_ORIGINAL_PDR_PAIRS (scop)); + htab_delete (SCOP_ORIGINAL_PDDRS (scop)); XDELETE (scop); } |