[Mlir-commits] [mlir] [mlir][linalg] Vectorize unpack op without masking (PR #89067)

Han-Chung Wang llvmlistbot at llvm.org
Thu Apr 25 09:53:33 PDT 2024


================
@@ -1612,7 +1622,8 @@ vectorizeAsTensorUnpackOp(RewriterBase &rewriter, tensor::UnPackOp unpackOp,
   // to shape of source, then a mask is necessary.
   Value readResult = vector::createReadOrMaskedRead(
       rewriter, loc, unpackOp.getSource(),
-      ArrayRef<int64_t>(readMaskShape.begin(), readMaskShape.end()), padValue);
+      ArrayRef<int64_t>(readMaskShape.begin(), readMaskShape.end()), padValue,
----------------
hanhanW wrote:

nit: We don't need to cast it SmallVector to ArrayRef... so maybe replace it with `readMaksShape`

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


More information about the Mlir-commits mailing list