[Mlir-commits] [mlir] [mlir][memref] Detect negative `offset` or `size` for `subview` (PR #72059)
Matthias Springer
llvmlistbot at llvm.org
Sun Nov 12 18:48:58 PST 2023
================
@@ -2621,6 +2621,15 @@ Type SubViewOp::inferResultType(MemRefType sourceMemRefType,
dispatchIndexOpFoldResults(offsets, dynamicOffsets, staticOffsets);
dispatchIndexOpFoldResults(sizes, dynamicSizes, staticSizes);
dispatchIndexOpFoldResults(strides, dynamicStrides, staticStrides);
+
+ for (int64_t offset : staticOffsets) {
----------------
matthias-springer wrote:
nit: loops can be wrapped in `#ifndef NDEBUG`
https://github.com/llvm/llvm-project/pull/72059
More information about the Mlir-commits
mailing list