[polly] [Polly] Isolate full tiles from partial tiles in the tiling path (PR #221087)
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 15 04:23:43 PDT 2026
================
@@ -1127,6 +1127,65 @@ isl::set polly::getPartialTilePrefixes(isl::set ScheduleRange,
return LoopPrefixes.subtract(BadPrefixes);
}
+/// Restrict the last @p Sizes.size() dimensions of @p Set to a complete tile,
+/// that is, to 0 <= dim <= size - 1 for each of them.
+static isl::set addTileExtentConstraints(isl::set Set,
+ llvm::ArrayRef<int> Sizes) {
+ unsigned Dims = unsignedFromIslSize(Set.tuple_dim());
+ unsigned NumTileDims = Sizes.size();
+ assert(Dims >= NumTileDims);
----------------
Meinersbur wrote:
Add a message to display to show then the assertion fails
```suggestion
assert(Dims >= NumTileDims && "Not sufficient tile sizes provided, need at least one per dimension");
```
https://github.com/llvm/llvm-project/pull/221087
More information about the llvm-commits
mailing list