aboutsummaryrefslogtreecommitdiff
path: root/gcc/graphite-poly.c
diff options
context:
space:
mode:
authorAbderrazek Zaafrani <a.zaafrani@samsung.com>2015-11-07 01:32:27 +0000
committerSebastian Pop <spop@gcc.gnu.org>2015-11-07 01:32:27 +0000
commit0473915e63175064c9b6c739841bc670c782cdbd (patch)
tree32104e688dc8f9ffb5f432b9e2a565d4fdc3e700 /gcc/graphite-poly.c
parent504fbc11f43fd20c33e5c44cc626f339f6fd8f8d (diff)
downloadgcc-0473915e63175064c9b6c739841bc670c782cdbd.zip
gcc-0473915e63175064c9b6c739841bc670c782cdbd.tar.gz
gcc-0473915e63175064c9b6c739841bc670c782cdbd.tar.bz2
add original schedule to scop
* graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal. * graphite-poly.c (new_scop): Initialize original_schedule. (free_scop): Free original_schedule. * graphite-poly.h (struct scop): Add field original_schedule. * graphite-sese-to-poly.c (build_scop_original_schedule): New. (build_poly_scop): Call build_scop_original_schedule. From-SVN: r229910
Diffstat (limited to 'gcc/graphite-poly.c')
-rw-r--r--gcc/graphite-poly.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/graphite-poly.c b/gcc/graphite-poly.c
index 2aa40c0..36c3061 100644
--- a/gcc/graphite-poly.c
+++ b/gcc/graphite-poly.c
@@ -305,6 +305,7 @@ new_scop (edge entry, edge exit)
scop->must_waw_no_source = NULL;
scop->may_waw_no_source = NULL;
scop_set_region (scop, region);
+ scop->original_schedule = NULL;
scop->pbbs.create (3);
scop->poly_scop_p = false;
scop->drs.create (3);
@@ -341,6 +342,7 @@ free_scop (scop_p scop)
isl_union_map_free (scop->may_waw);
isl_union_map_free (scop->must_waw_no_source);
isl_union_map_free (scop->may_waw_no_source);
+ isl_union_map_free (scop->original_schedule);
XDELETE (scop);
}