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

Commit 1e7572d

Browse files
author
Sven Verdoolaege
committed
halide2isl.cc: extractAccess: drop redundant cast
The cast was apparently introduced because isl::aff does not currently have an "eq_map" method. However, the "eq_map" call was replaced by an "eq_set" call 8a4d9f1 (halide2isl::extractAccesses: construct accesses in parameter space, Mon Mar 26 14:50:33 2018 +0200), which does appear as a method in isl:aff. The cast is therefore no longer needed. Explicit casts make it more difficult to switch to templated isl types.
1 parent c52b574 commit 1e7572d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tc/core/halide2isl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ isl::map extractAccess(
277277
// ... equals the coordinate accessed as a function of the parameters.
278278
auto domainPoint = halide2isl::makeIslAffFromExpr(tensorSpace, args[i]);
279279
if (!domainPoint.is_null()) {
280-
access = access.intersect(isl::pw_aff(domainPoint).eq_set(rangePoint));
280+
access = access.intersect(domainPoint.eq_set(rangePoint));
281281
}
282282
}
283283

0 commit comments

Comments
 (0)