[Mlir-commits] [mlir] [mlir][vector] Fix invalid `LoadOp` indices being created (PR #75519)

Kai Sasaki llvmlistbot at llvm.org
Sat Dec 16 16:15:10 PST 2023


================
@@ -897,7 +896,8 @@ struct TransferOpConversion : public VectorToSCFPattern<OpTy> {
       } else {
         // It's safe to assume the mask buffer can be unpacked if the data
         // buffer was unpacked.
-        auto castedMaskType = *unpackOneDim(maskBufferType);
+        auto maskBufferType = dyn_cast<MemRefType>(maskBuffer.getType());
----------------
Lewuathe wrote:

Thanks for the pointer. That makes sense.

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


More information about the Mlir-commits mailing list