[Mlir-commits] [mlir] Fix unsupported transpose ops for scalable vectors in LowerVectorTransfer (PR #86163)
Benjamin Maxwell
llvmlistbot at llvm.org
Fri Mar 22 07:57:19 PDT 2024
================
@@ -201,12 +205,19 @@ struct TransferWritePermutationLowering
// Generate new transfer_write operation.
Value newVec = rewriter.create<vector::TransposeOp>(
op.getLoc(), op.getVector(), indices);
+
+ auto vectorType = cast<VectorType>(newVec.getType());
+
+ if (vectorType.isScalable() && !*vectorType.getScalableDims().end()) {
----------------
MacDue wrote:
Fine with me :+1: (I agree with the naming, the `isLegal` was only within the context of the ArmSME pass).
https://github.com/llvm/llvm-project/pull/86163
More information about the Mlir-commits
mailing list