summaryrefslogtreecommitdiffstats
path: root/polly/lib/Exchange
diff options
context:
space:
mode:
Diffstat (limited to 'polly/lib/Exchange')
-rw-r--r--polly/lib/Exchange/JSONExporter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/polly/lib/Exchange/JSONExporter.cpp b/polly/lib/Exchange/JSONExporter.cpp
index 8489e8f823f..b9dcaadb9a4 100644
--- a/polly/lib/Exchange/JSONExporter.cpp
+++ b/polly/lib/Exchange/JSONExporter.cpp
@@ -236,6 +236,10 @@ bool JSONImporter::runOnScop(Scop &S) {
// that stores the reference to the ScopStmt this schedule belongs to.
m = isl_map_set_tuple_id(m, isl_dim_in,
isl_space_get_tuple_id(Space, isl_dim_set));
+ for (unsigned i = 0; i < isl_space_dim(Space, isl_dim_param); i++) {
+ isl_id *id = isl_space_get_dim_id(Space, isl_dim_param, i);
+ m = isl_map_set_dim_id(m, isl_dim_param, i, id);
+ }
isl_space_free(Space);
NewSchedule[*SI] = m;
index++;
OpenPOWER on IntegriCloud