From 2290a80b4dcbeb230ea47ea59b00205ccefbaa96 Mon Sep 17 00:00:00 2001 From: Tres Popp Date: Sun, 30 May 2021 19:50:54 +0200 Subject: [PATCH] [mlir][NFC] Remove illegal TanhOp in LLVMConversionTarget No tests fail and this seems to be technical debt from when the math dialect was created. This should not be there as it prevents users from configuring their converion target freely and results in unexpected behavior on seemingly unrelated ops. Differential Revision: https://reviews.llvm.org/D103388 --- mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp b/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp index 2fbfa11..6ddc333 100644 --- a/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp +++ b/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp @@ -4132,7 +4132,6 @@ mlir::LLVMConversionTarget::LLVMConversionTarget(MLIRContext &ctx) : ConversionTarget(ctx) { this->addLegalDialect(); this->addIllegalOp(); - this->addIllegalOp(); } std::unique_ptr> mlir::createLowerToLLVMPass() { -- 2.7.4