[Mlir-commits] [mlir] [MLIR] [AMX] Fix strides used by AMX lowering for tile loads and stores. (PR #113476)

Ilya Enkovich llvmlistbot at llvm.org
Mon Oct 28 13:01:04 PDT 2024


================
@@ -55,21 +55,25 @@ Value getStride(ConversionPatternRewriter &rewriter,
                 const LLVMTypeConverter &typeConverter, MemRefType mType,
                 Value base, Location loc) {
   assert(mType.getRank() >= 2);
-  int64_t last = mType.getRank() - 1;
+  int64_t preLast = mType.getRank() - 2;
----------------
ienkovich wrote:

Yeah, that makes sense. I've updated the patch to merge these two functions.

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


More information about the Mlir-commits mailing list