This repository was archived by the owner on Apr 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -238,14 +238,13 @@ std::unique_ptr<ScheduleTree> ScheduleTree::makeFilter(
238
238
239
239
std::unique_ptr<ScheduleTree> ScheduleTree::makeMappingUnsafe (
240
240
const std::vector<mapping::MappingId>& mappedIds,
241
- isl::union_pw_aff_list mappedAffs,
241
+ isl::UnionPwAffListOn<Statement> mappedAffs,
242
242
std::vector<ScheduleTreeUPtr>&& children) {
243
243
TC_CHECK_EQ (mappedIds.size (), static_cast <size_t >(mappedAffs.size ()))
244
244
<< " expected as many mapped ids as affs" ;
245
245
ScheduleTreeMapping::Mapping mapping;
246
246
for (size_t i = 0 , n = mappedAffs.size (); i < n; ++i) {
247
- auto aff = isl::UnionPwAffOn<Statement>(mappedAffs.get_at (i));
248
- mapping.emplace (mappedIds.at (i), aff);
247
+ mapping.emplace (mappedIds.at (i), mappedAffs.get_at (i));
249
248
}
250
249
TC_CHECK_GE (mapping.size (), 1u ) << " empty mapping" ;
251
250
TC_CHECK_EQ (mappedIds.size (), mapping.size ())
Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ struct ScheduleTree {
302
302
template <typename MappingIdType>
303
303
static inline ScheduleTreeUPtr makeMapping (
304
304
const std::vector<MappingIdType>& mappedIds,
305
- isl::union_pw_aff_list mappedAffs,
305
+ isl::UnionPwAffListOn<Statement> mappedAffs,
306
306
std::vector<ScheduleTreeUPtr>&& children = {}) {
307
307
static_assert (
308
308
std::is_base_of<mapping::MappingId, MappingIdType>::value,
@@ -319,7 +319,7 @@ struct ScheduleTree {
319
319
// Internal type-unsafe function to construct mappings.
320
320
static ScheduleTreeUPtr makeMappingUnsafe (
321
321
const std::vector<mapping::MappingId>& mappedIds,
322
- isl::union_pw_aff_list mappedAffs,
322
+ isl::UnionPwAffListOn<Statement> mappedAffs,
323
323
std::vector<ScheduleTreeUPtr>&& children);
324
324
325
325
public:
You can’t perform that action at this time.
0 commit comments