[llvm-branch-commits] [mlir] [MLIR] Fix incorrect slice contiguity inference in `vector::isContiguousSlice` (PR #142422)

Momchil Velikov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jun 6 04:12:58 PDT 2025


================
@@ -582,6 +582,15 @@ static SmallVector<Value> getCollapsedIndices(RewriterBase &rewriter,
 
 namespace {
 
+/// Helper functon to return the index of the last dynamic dimension in `shape`.
----------------
momchil-velikov wrote:

`std::distance` returns a `ptrdiff_t`,  there's a chance it's not the same as `int64_t` (e.g. `long long` vs. `long`).

https://github.com/llvm/llvm-project/pull/142422


More information about the llvm-branch-commits mailing list