[Mlir-commits] [mlir] [mlir][vector] reject negative strides for `vector.load`/`vector.store` (PR #204611)
Federico Bruzzone
llvmlistbot at llvm.org
Tue Jun 23 07:35:32 PDT 2026
================
@@ -285,7 +276,7 @@ class VectorLoadStoreConversion : public ConvertOpToLLVMPattern<LoadOrStoreOp> {
noWrapFlags = noWrapFlags | LLVM::GEPNoWrapFlags::inbounds;
// `nuw` additionally requires non-negative strides; skip it when the
// memref has dynamic or negative strides to avoid emitting poison.
- if (hasNonNegativeStrides(memRefTy))
+ if (memref::hasNonNegativeStaticStrides(memRefTy))
----------------
FedericoBruzzone wrote:
Wow! That's true! Thanks :D
https://github.com/llvm/llvm-project/pull/204611
More information about the Mlir-commits
mailing list