[flang-commits] [flang] d61a3d3 - [flang] Remove parameter for libm mlir::populateMathToLibmConversionPatterns.

Alexander Belyaev via flang-commits flang-commits at lists.llvm.org
Tue Feb 21 10:42:50 PST 2023


Author: Alexander Belyaev
Date: 2023-02-21T19:42:42+01:00
New Revision: d61a3d3a9b95961144e672c79570aa7b7ab8758b

URL: https://github.com/llvm/llvm-project/commit/d61a3d3a9b95961144e672c79570aa7b7ab8758b
DIFF: https://github.com/llvm/llvm-project/commit/d61a3d3a9b95961144e672c79570aa7b7ab8758b.diff

LOG: [flang] Remove parameter for libm mlir::populateMathToLibmConversionPatterns.

https://reviews.llvm.org/rG8a9d4895df780231a14a1afc44e18b1f6b7eab93

Added: 
    

Modified: 
    flang/lib/Optimizer/CodeGen/CodeGen.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Optimizer/CodeGen/CodeGen.cpp b/flang/lib/Optimizer/CodeGen/CodeGen.cpp
index 8d278abdc9231..4ac5451cc7cf0 100644
--- a/flang/lib/Optimizer/CodeGen/CodeGen.cpp
+++ b/flang/lib/Optimizer/CodeGen/CodeGen.cpp
@@ -3829,7 +3829,7 @@ class FIRToLLVMLowering
     // Convert math-like dialect operations, which can be produced
     // when late math lowering mode is used, into llvm dialect.
     mlir::populateMathToLLVMConversionPatterns(typeConverter, pattern);
-    mlir::populateMathToLibmConversionPatterns(pattern, /*benefit=*/0);
+    mlir::populateMathToLibmConversionPatterns(pattern);
     mlir::populateComplexToLLVMConversionPatterns(typeConverter, pattern);
     mlir::ConversionTarget target{*context};
     target.addLegalDialect<mlir::LLVM::LLVMDialect>();


        


More information about the flang-commits mailing list