summaryrefslogtreecommitdiffstats
path: root/polly/lib/Exchange/JSONExporter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'polly/lib/Exchange/JSONExporter.cpp')
-rwxr-xr-xpolly/lib/Exchange/JSONExporter.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/polly/lib/Exchange/JSONExporter.cpp b/polly/lib/Exchange/JSONExporter.cpp
index 00c9f88e2e5..b1488c63b0a 100755
--- a/polly/lib/Exchange/JSONExporter.cpp
+++ b/polly/lib/Exchange/JSONExporter.cpp
@@ -228,6 +228,19 @@ bool JSONImporter::runOnScop(Scop &scop) {
return false;
}
+ isl_set *OldContext = S->getContext();
+ isl_set *NewContext = isl_set_read_from_str(S->getIslCtx(),
+ jscop["context"].asCString());
+
+ for (unsigned i = 0; i < isl_set_dim(OldContext, isl_dim_param); i++) {
+ isl_id *id = isl_set_get_dim_id(OldContext, isl_dim_param, i);
+ NewContext = isl_set_set_dim_id(NewContext, isl_dim_param, i, id);
+
+ }
+
+ isl_set_free(OldContext);
+ S->setContext(NewContext);
+
StatementToIslMapTy &NewScattering = *(new StatementToIslMapTy());
int index = 0;
OpenPOWER on IntegriCloud