Skip to content

Commit 01ac530

Browse files
authored
[mlir][ArmSME] Remove vector.print legality from ArmSMEToSCF (NFC) (#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
1 parent 3c1e7fb commit 01ac530

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

mlir/lib/Conversion/ArmSMEToSCF/ArmSMEToSCF.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -484,12 +484,6 @@ struct ConvertArmSMEToSCFPass
484484
target.addLegalDialect<arm_sme::ArmSMEDialect, vector::VectorDialect,
485485
arith::ArithDialect, scf::SCFDialect>();
486486
target.addIllegalOp<arm_sme::TileLoadOp, arm_sme::TileStoreOp>();
487-
target.addDynamicallyLegalOp<vector::PrintOp>([](vector::PrintOp op) {
488-
if (!op.getSource())
489-
return true;
490-
VectorType vectorType = dyn_cast<VectorType>(op.getPrintType());
491-
return !vectorType || !arm_sme::isValidSMETileVectorType(vectorType);
492-
});
493487
if (failed(applyPartialConversion(getOperation(), target,
494488
std::move(patterns))))
495489
signalPassFailure();

0 commit comments

Comments
 (0)