aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Springer <me@m-sp.org>2025-08-10 11:06:21 +0000
committerMatthias Springer <me@m-sp.org>2025-08-10 11:06:21 +0000
commitf5e78bfc45de2a7ea34fd82163778b3a8d6174ff (patch)
tree25b7442545dca147665eed5f96f81cc74b2bc466
parent10e146a7161065429629a13f99c179a61ffe7721 (diff)
downloadllvm-users/matthias-springer/simplify_sparse_pipeline.zip
llvm-users/matthias-springer/simplify_sparse_pipeline.tar.gz
llvm-users/matthias-springer/simplify_sparse_pipeline.tar.bz2
[mlir][SparseTensor] Simplify pipelineusers/matthias-springer/simplify_sparse_pipeline
-rw-r--r--mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp b/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp
index 3b97786..dabbea1 100644
--- a/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp
@@ -71,7 +71,6 @@ void mlir::sparse_tensor::buildSparsifier(OpPassManager &pm,
pm.addPass(createLowerAffinePass());
pm.addPass(
createConvertVectorToLLVMPass(options.convertVectorToLLVMOptions()));
- pm.addPass(createFinalizeMemRefToLLVMConversionPass());
pm.addNestedPass<func::FuncOp>(createConvertComplexToStandardPass());
pm.addNestedPass<func::FuncOp>(arith::createArithExpandOpsPass());
pm.addNestedPass<func::FuncOp>(createConvertMathToLLVMPass());
@@ -79,12 +78,6 @@ void mlir::sparse_tensor::buildSparsifier(OpPassManager &pm,
pm.addPass(createConvertComplexToLibm());
pm.addPass(
createConvertVectorToLLVMPass(options.convertVectorToLLVMOptions()));
- pm.addPass(createConvertComplexToLLVMPass());
- pm.addPass(
- createConvertVectorToLLVMPass(options.convertVectorToLLVMOptions()));
- pm.addPass(createConvertFuncToLLVMPass());
- pm.addPass(createArithToLLVMConversionPass());
- pm.addPass(createConvertControlFlowToLLVMPass());
// Finalize GPU code generation.
if (gpuCodegen) {
@@ -99,8 +92,8 @@ void mlir::sparse_tensor::buildSparsifier(OpPassManager &pm,
pm.addPass(createGpuModuleToBinaryPass(gpuModuleToBinaryPassOptions));
}
- // Convert poison values.
- pm.addPass(createUBToLLVMConversionPass());
+ // Convert to LLVM.
+ pm.addPass(createConvertToLLVMPass());
// Ensure all casts are realized.
pm.addPass(createReconcileUnrealizedCastsPass());