[Mlir-commits] [mlir] 917e458 - [mlir] Cleanup the addLegalOp of convert-linalg-to-std pass (NFC) (#171979)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Dec 12 02:03:01 PST 2025
Author: lonely eagle
Date: 2025-12-12T18:02:56+08:00
New Revision: 917e458b964418b17d969e3fa914846df4578004
URL: https://github.com/llvm/llvm-project/commit/917e458b964418b17d969e3fa914846df4578004
DIFF: https://github.com/llvm/llvm-project/commit/917e458b964418b17d969e3fa914846df4578004.diff
LOG: [mlir] Cleanup the addLegalOp of convert-linalg-to-std pass (NFC) (#171979)
Added:
Modified:
mlir/lib/Conversion/LinalgToStandard/LinalgToStandard.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/LinalgToStandard/LinalgToStandard.cpp b/mlir/lib/Conversion/LinalgToStandard/LinalgToStandard.cpp
index 3f4b4d6cbc8ab..54c554eb6bd93 100644
--- a/mlir/lib/Conversion/LinalgToStandard/LinalgToStandard.cpp
+++ b/mlir/lib/Conversion/LinalgToStandard/LinalgToStandard.cpp
@@ -144,7 +144,7 @@ void ConvertLinalgToStandardPass::runOnOperation() {
target.addLegalDialect<affine::AffineDialect, arith::ArithDialect,
func::FuncDialect, memref::MemRefDialect,
scf::SCFDialect>();
- target.addLegalOp<ModuleOp, func::FuncOp, func::ReturnOp>();
+ target.addLegalOp<ModuleOp>();
RewritePatternSet patterns(&getContext());
populateLinalgToStandardConversionPatterns(patterns);
if (failed(applyFullConversion(module, target, std::move(patterns))))
More information about the Mlir-commits
mailing list