@@ -2180,8 +2180,8 @@ void Scop::createParameterId(const SCEV *Parameter) {
2180
2180
ParameterName = getIslCompatibleName (" " , ParameterName, " " );
2181
2181
}
2182
2182
2183
- auto * Id = isl_id_alloc (getIslCtx (), ParameterName.c_str (),
2184
- const_cast <void *>((const void *)Parameter));
2183
+ isl::id Id = isl::id::alloc (getIslCtx (), ParameterName.c_str (),
2184
+ const_cast <void *>((const void *)Parameter));
2185
2185
ParameterIds[Parameter] = Id;
2186
2186
}
2187
2187
@@ -2199,7 +2199,7 @@ void Scop::addParams(const ParameterSetTy &NewParameters) {
2199
2199
isl::id Scop::getIdForParam (const SCEV *Parameter) const {
2200
2200
// Normalize the SCEV to get the representing element for an invariant load.
2201
2201
Parameter = getRepresentingInvariantLoadSCEV (Parameter);
2202
- return isl::manage ( isl_id_copy ( ParameterIds.lookup (Parameter)) );
2202
+ return ParameterIds.lookup (Parameter);
2203
2203
}
2204
2204
2205
2205
isl::set Scop::addNonEmptyDomainConstraints (isl::set C) const {
@@ -3698,8 +3698,7 @@ Scop::~Scop() {
3698
3698
isl_set_free (InvalidContext);
3699
3699
isl_schedule_free (Schedule);
3700
3700
3701
- for (auto &It : ParameterIds)
3702
- isl_id_free (It.second );
3701
+ ParameterIds.clear ();
3703
3702
3704
3703
for (auto &AS : RecordedAssumptions)
3705
3704
isl_set_free (AS.Set );
0 commit comments