summaryrefslogtreecommitdiffstats
path: root/polly/lib/Exchange
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2015-04-23 12:23:56 +0000
committerTobias Grosser <tobias@grosser.es>2015-04-23 12:23:56 +0000
commit2165de8894a347895160bf3aca48d5324e725adc (patch)
treebb66ef72ac0d0f94be6965e237e75a00fe021950 /polly/lib/Exchange
parent10c7d300bc82b0f4788972688a44b1e320618185 (diff)
downloadbcm5719-llvm-2165de8894a347895160bf3aca48d5324e725adc.tar.gz
bcm5719-llvm-2165de8894a347895160bf3aca48d5324e725adc.zip
JScoP Import/Export: Ensure parameters have the same isl_id
When reading parameters from a JSON file parameters with identical names may be related to different isl_ids, which then causes isl to treat them as differnet objects. This does not cause issues at the moment, but has shown problematic in subsequent schedule tree changes. This commit will be tested by the following changes. llvm-svn: 235588
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