[Mlir-commits] [mlir] 681b97e - Remove TODO related to adding assert from Sparse Tensor Pipeline code

Rajas Vanjape llvmlistbot at llvm.org
Thu Aug 25 13:48:03 PDT 2022


Author: Rajas Vanjape
Date: 2022-08-25T20:47:30Z
New Revision: 681b97e5869d49b1e5163534811f370ba5ac0e40

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

LOG: Remove TODO related to adding assert from Sparse Tensor Pipeline code

Removing the TODO related to asserting that original `pm` is for ModuleOp.
The TODO is removed for following reasons:
1. There is no easy way to do this. We currently don't have this information stored in OpPassManager object.
2. There are currently no consumers of this information and storing this information with OpPassManager for a
   simple assert will be an overkill.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D132699

Added: 
    

Modified: 
    mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp b/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp
index 62f03b32f1086..f9abd72aeb83d 100644
--- a/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp
@@ -51,7 +51,6 @@ getBufferizationOptions(bool analysisOnly) {
 
 void mlir::sparse_tensor::buildSparseCompiler(
     OpPassManager &pm, const SparseCompilerOptions &options) {
-  // TODO(wrengr): ensure the original `pm` is for ModuleOp
   pm.addNestedPass<func::FuncOp>(createLinalgGeneralizationPass());
   pm.addPass(
       bufferization::createTensorCopyInsertionPass(getBufferizationOptions(


        


More information about the Mlir-commits mailing list