[Mlir-commits] [mlir] [mlir][vector] Fix invalid `LoadOp` indices being created (PR #75519)
Rik Huijzer
llvmlistbot at llvm.org
Sat Dec 16 03:33:25 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());
----------------
rikhuijzer wrote:
As far as I understood, we should use `auto` when the type is obvious (https://llvm.org/docs/CodingStandards.html#use-auto-type-deduction-to-make-code-more-readable).
https://github.com/llvm/llvm-project/pull/75519
More information about the Mlir-commits
mailing list