diff options
author | Abderrazek Zaafrani <a.zaafrani@samsung.com> | 2015-12-16 23:40:06 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2015-12-16 23:40:06 +0000 |
commit | 9625f2a27cd633acd19a1744e8f7439bd7a5715d (patch) | |
tree | 6502df57ccc8b89b30cd48d0f4b6825eff505cfd /gcc/graphite-optimize-isl.c | |
parent | 6cb6583c5ff97ef55e49a07d0367e8445e494dec (diff) | |
download | gcc-9625f2a27cd633acd19a1744e8f7439bd7a5715d.zip gcc-9625f2a27cd633acd19a1744e8f7439bd7a5715d.tar.gz gcc-9625f2a27cd633acd19a1744e8f7439bd7a5715d.tar.bz2 |
attach schedule tree to the scop
we used to translate the just computed schedule tree into a union_map,
and then in the code generation it would be translated back to a schedule tree
just before generating AST code.
From-SVN: r231725
Diffstat (limited to 'gcc/graphite-optimize-isl.c')
-rw-r--r-- | gcc/graphite-optimize-isl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/graphite-optimize-isl.c b/gcc/graphite-optimize-isl.c index f5cb5c4..1d9449b 100644 --- a/gcc/graphite-optimize-isl.c +++ b/gcc/graphite-optimize-isl.c @@ -420,6 +420,10 @@ optimize_isl (scop_p scop) return false; } + /* Attach the schedule to scop so that it can be used in code generation. + schedule freeing will occur in code generation. */ + scop->schedule = schedule; + #ifdef HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS /* isl 0.15 or later. */ isl_union_map *schedule_map = get_schedule_map_st (schedule); @@ -428,7 +432,6 @@ optimize_isl (scop_p scop) #endif apply_schedule_map_to_scop (scop, schedule_map); - isl_schedule_free (schedule); isl_union_map_free (schedule_map); return true; } |