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

Kai Sasaki llvmlistbot at llvm.org
Sat Dec 16 03:17:01 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:

We may want to be explicit of the type here.

```suggestion
        MemRefType maskBufferType = dyn_cast<MemRefType>(maskBuffer.getType());
```

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


More information about the Mlir-commits mailing list