[PATCH] D39971: Port ScopInfo to the isl cpp bindings

Philip Pfaffe via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 19 14:16:45 PST 2017


philip.pfaffe added inline comments.


================
Comment at: lib/Analysis/ScopInfo.cpp:3383
 
-Scop::~Scop() {
-  isl_set_free(Context);
-  isl_set_free(AssumedContext);
-  isl_set_free(InvalidContext);
-  isl_schedule_free(Schedule);
-
-  ParameterIds.clear();
-
-  for (auto &AS : RecordedAssumptions)
-    isl_set_free(AS.Set);
-
-  // Free the alias groups
-  for (MinMaxVectorPairTy &MinMaxAccessPair : MinMaxAliasGroups) {
-    for (MinMaxAccessTy &MMA : MinMaxAccessPair.first) {
-      isl_pw_multi_aff_free(MMA.first);
-      isl_pw_multi_aff_free(MMA.second);
-    }
-    for (MinMaxAccessTy &MMA : MinMaxAccessPair.second) {
-      isl_pw_multi_aff_free(MMA.first);
-      isl_pw_multi_aff_free(MMA.second);
-    }
-  }
-
-  for (const auto &IAClass : InvariantEquivClasses)
-    isl_set_free(IAClass.ExecutionContext);
-
-  // Explicitly release all Scop objects and the underlying isl objects before
-  // we release the isl context.
-  Stmts.clear();
-  ScopArrayInfoSet.clear();
-  ScopArrayInfoMap.clear();
-  ScopArrayNameMap.clear();
-  AccessFunctions.clear();
-}
+Scop::~Scop() = default;
 
----------------
Meinersbur wrote:
> Could we just remove the dtor? Or declare `= default` in the header? Is there is a motivation to make it more explicit that there is a default dtor?
I just kept it the same as the three other classes in that header/file.


Repository:
  rL LLVM

https://reviews.llvm.org/D39971





More information about the llvm-commits mailing list