Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 3687316

Browse files
author
Sven Verdoolaege
committed
codegen_cuda.cc: emitCopyStmt: skip conversion to isl::map
range_factor_domain and range_factor_range are now also available on isl::pw_multi_aff.
1 parent fa36a4f commit 3687316

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/core/polyhedral/cuda/codegen.cc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -364,12 +364,9 @@ void emitCopyStmt(const CodegenStatementContext& context) {
364364

365365
auto stmtId = context.statementId();
366366

367-
// Casting to map for more advanced projection functionality. No information
368-
// loss expected.
369-
auto map = isl::map::from(context.iteratorMap());
370-
auto promoted = isl::pw_multi_aff(map.range_factor_range());
371-
auto original =
372-
isl::pw_multi_aff(map.range_factor_domain().range_factor_range());
367+
auto iteratorMap = context.iteratorMap();
368+
auto promoted = iteratorMap.range_factor_range();
369+
auto original = iteratorMap.range_factor_domain().range_factor_range();
373370
auto isRead = stmtId.get_name() == kReadIdName;
374371
auto originalName = original.get_tuple_id(isl::dim_type::out).get_name();
375372
auto promotedName = promoted.get_tuple_id(isl::dim_type::out).get_name();

0 commit comments

Comments
 (0)