[Mlir-commits] [mlir] [mlir][vector] Fix parser of vector.transfer_read (PR #133721)
Longsheng Mou
llvmlistbot at llvm.org
Tue Apr 1 18:22:40 PDT 2025
================
@@ -164,6 +164,10 @@ AffineMap mlir::vector::getTransferMinorIdentityMap(ShapedType shapedType,
return AffineMap::get(
/*numDims=*/0, /*numSymbols=*/0,
getAffineConstantExpr(0, shapedType.getContext()));
+ if (shapedType.getRank() < vectorType.getRank() - elementVectorRank) {
+ return AffineMap(); // Not enough dimensions in the shaped type to form a
----------------
CoTinker wrote:
The comments couldn't in same line with code.
https://github.com/llvm/llvm-project/pull/133721
More information about the Mlir-commits
mailing list