From 7bd2a8a7ef778f7425121974cea4204a11c24388 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Fri, 28 Aug 2009 20:40:59 +0000 Subject: graphite-interchange.c (pbb_interchange_profitable_p): Adjust the strides by multiplying by PDR_NB_REFS. 2009-08-28 Sebastian Pop * graphite-interchange.c (pbb_interchange_profitable_p): Adjust the strides by multiplying by PDR_NB_REFS. * graphite-poly.c (can_collapse_pdr): New. (pdr_find_duplicate): New. (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs. Initialize PDR_NB_REFS. * graphite-poly.h (struct poly_dr): Add field nb_refs. (PDR_NB_REFS): New. (new_poly_dr): Number of subscripts is a graphite_dim_t. From-SVN: r151191 --- gcc/graphite-poly.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/graphite-poly.h') diff --git a/gcc/graphite-poly.h b/gcc/graphite-poly.h index 10831afde8e..8f7352a5efb 100644 --- a/gcc/graphite-poly.h +++ b/gcc/graphite-poly.h @@ -56,6 +56,9 @@ struct poly_dr /* An identifier for this PDR. */ int id; + /* The number of data refs identical to this one in the PBB. */ + int nb_refs; + /* A pointer to compiler's data reference description. */ void *compiler_dr; @@ -137,6 +140,7 @@ struct poly_dr }; #define PDR_ID(PDR) (PDR->id) +#define PDR_NB_REFS(PDR) (PDR->nb_refs) #define PDR_CDR(PDR) (PDR->compiler_dr) #define PDR_PBB(PDR) (PDR->pbb) #define PDR_TYPE(PDR) (PDR->type) @@ -144,7 +148,7 @@ struct poly_dr #define PDR_NB_SUBSCRIPTS(PDR) (PDR->nb_subscripts) void new_poly_dr (poly_bb_p, ppl_Pointset_Powerset_C_Polyhedron_t, - enum poly_dr_type, void *, int); + enum poly_dr_type, void *, graphite_dim_t); void free_poly_dr (poly_dr_p); void debug_pdr (poly_dr_p); void print_pdr (FILE *, poly_dr_p); -- cgit v1.2.1