diff --git a/mlir/lib/Dialect/SparseTensor/Pipelines/CMakeLists.txt b/mlir/lib/Dialect/SparseTensor/Pipelines/CMakeLists.txt --- a/mlir/lib/Dialect/SparseTensor/Pipelines/CMakeLists.txt +++ b/mlir/lib/Dialect/SparseTensor/Pipelines/CMakeLists.txt @@ -9,6 +9,7 @@ MLIRAffineToStandard MLIRBufferizationTransforms MLIRComplexToLLVM + MLIRComplexToLibm MLIRComplexToStandard MLIRFuncTransforms MLIRLinalgTransforms diff --git a/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp b/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp --- a/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp +++ b/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp @@ -50,8 +50,9 @@ pm.addPass(createMemRefToLLVMPass()); pm.addNestedPass(createConvertComplexToStandardPass()); pm.addNestedPass(createConvertMathToLLVMPass()); - pm.addPass(createConvertComplexToLLVMPass()); pm.addPass(createConvertMathToLibmPass()); + pm.addPass(createConvertComplexToLibmPass()); + pm.addPass(createConvertComplexToLLVMPass()); pm.addPass(createConvertFuncToLLVMPass()); pm.addPass(createReconcileUnrealizedCastsPass()); }