[Mlir-commits] [mlir] [mlir][ArmSME] Remove `vector.print` legality from ArmSMEToSCF (NFC) (PR #74875)
Benjamin Maxwell
llvmlistbot at llvm.org
Fri Dec 8 09:44:44 PST 2023
https://github.com/MacDue created https://github.com/llvm/llvm-project/pull/74875
This was moved to VectorToArmSME in #74063, so this is no longer needed.
VectorToArmSME uses a greedy rewriter, so a similar legality rule is not needed there.
See: https://github.com/llvm/llvm-project/blob/bbb8a0df7367068e1cf2fc54edd376beb976b430/mlir/lib/Conversion/VectorToArmSME/VectorToArmSMEPass.cpp#L35
>From 286bb1011a958cd8abf00f30022f92086f2106cf Mon Sep 17 00:00:00 2001
From: Benjamin Maxwell <benjamin.maxwell at arm.com>
Date: Fri, 8 Dec 2023 17:38:31 +0000
Subject: [PATCH] [mlir][ArmSME] Remove `vector.print` legality from
ArmSMEToSCF (NFC)
This was moved to VectorToArmSME in #74063, so this is no longer needed.
VectorToArmSME uses a greedy rewriter, so a similar legality rule is not
needed there.
See: https://github.com/llvm/llvm-project/blob/bbb8a0df7367068e1cf2fc54edd376beb976b430/mlir/lib/Conversion/VectorToArmSME/VectorToArmSMEPass.cpp#L35
---
mlir/lib/Conversion/ArmSMEToSCF/ArmSMEToSCF.cpp | 6 ------
1 file changed, 6 deletions(-)
diff --git a/mlir/lib/Conversion/ArmSMEToSCF/ArmSMEToSCF.cpp b/mlir/lib/Conversion/ArmSMEToSCF/ArmSMEToSCF.cpp
index c3c9780318a9e9..c9d7c0c313b5c8 100644
--- a/mlir/lib/Conversion/ArmSMEToSCF/ArmSMEToSCF.cpp
+++ b/mlir/lib/Conversion/ArmSMEToSCF/ArmSMEToSCF.cpp
@@ -484,12 +484,6 @@ struct ConvertArmSMEToSCFPass
target.addLegalDialect<arm_sme::ArmSMEDialect, vector::VectorDialect,
arith::ArithDialect, scf::SCFDialect>();
target.addIllegalOp<arm_sme::TileLoadOp, arm_sme::TileStoreOp>();
- target.addDynamicallyLegalOp<vector::PrintOp>([](vector::PrintOp op) {
- if (!op.getSource())
- return true;
- VectorType vectorType = dyn_cast<VectorType>(op.getPrintType());
- return !vectorType || !arm_sme::isValidSMETileVectorType(vectorType);
- });
if (failed(applyPartialConversion(getOperation(), target,
std::move(patterns))))
signalPassFailure();
More information about the Mlir-commits
mailing list