[flang-commits] [compiler-rt] [flang] [mlir] [llvm] [clang-tools-extra] [clang] [mlir][vector] Fix invalid `LoadOp` indices being created (PR #76292)

Rik Huijzer via flang-commits flang-commits at lists.llvm.org
Tue Jan 2 09:42:22 PST 2024


================
@@ -897,7 +921,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:

That's caused by git diff being confusing. The `maskBufferType` was defined before the `if-else`, but only used inside the `else`, so I moved it inside the `else`.

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


More information about the flang-commits mailing list