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

Commit 2931669

Browse files
Merge pull request #236 from facebookresearch/pr/pma_factor
codegen_cuda.cc: emitCopyStmt: skip conversion to isl::map
2 parents 628f282 + 3687316 commit 2931669

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
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();

third-party/islpp

Submodule islpp updated from 1da73b6 to f063f21

0 commit comments

Comments
 (0)