[Mlir-commits] [mlir] beebffa - [NFC] Remove obsolete all_passes_registration from integration tests.

Stella Laurenzo llvmlistbot at llvm.org
Sat Jul 16 18:19:58 PDT 2022


Author: Stella Laurenzo
Date: 2022-07-16T18:18:43-07:00
New Revision: beebffa9ab81bba3de91b2cee7a62578ebe1ae00

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

LOG: [NFC] Remove obsolete all_passes_registration from integration tests.

After https://reviews.llvm.org/D128593 this is not needed (and not available). Was missed in original landing because integration tests do not run on pre-merge.

Added: 
    

Modified: 
    mlir/benchmark/python/common.py
    mlir/test/Integration/Dialect/SparseTensor/python/tools/sparse_compiler.py
    mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco_utils.py
    mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_sparse_compiler.py

Removed: 
    


################################################################################
diff  --git a/mlir/benchmark/python/common.py b/mlir/benchmark/python/common.py
index 3d80892b0fb86..b2269251480bc 100644
--- a/mlir/benchmark/python/common.py
+++ b/mlir/benchmark/python/common.py
@@ -1,8 +1,6 @@
 """Common utilities that are useful for all the benchmarks."""
 import numpy as np
 
-import mlir.all_passes_registration
-
 from mlir import ir
 from mlir.dialects import arith
 from mlir.dialects import func

diff  --git a/mlir/test/Integration/Dialect/SparseTensor/python/tools/sparse_compiler.py b/mlir/test/Integration/Dialect/SparseTensor/python/tools/sparse_compiler.py
index 82c40625bcc44..174e847f72c23 100644
--- a/mlir/test/Integration/Dialect/SparseTensor/python/tools/sparse_compiler.py
+++ b/mlir/test/Integration/Dialect/SparseTensor/python/tools/sparse_compiler.py
@@ -4,7 +4,6 @@
 
 #  This file contains the sparse compiler class.
 
-from mlir import all_passes_registration
 from mlir import execution_engine
 from mlir import ir
 from mlir import passmanager

diff  --git a/mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco_utils.py b/mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco_utils.py
index 969d78b2e5887..bd382c0bc9fe5 100644
--- a/mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco_utils.py
+++ b/mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco_utils.py
@@ -11,7 +11,6 @@
 import os
 
 # Import MLIR related modules.
-from mlir import all_passes_registration  # Register MLIR compiler passes.
 from mlir import execution_engine
 from mlir import ir
 from mlir import runtime

diff  --git a/mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_sparse_compiler.py b/mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_sparse_compiler.py
index 58e08d9a4e9a0..6f117f386f531 100644
--- a/mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_sparse_compiler.py
+++ b/mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_sparse_compiler.py
@@ -6,7 +6,6 @@
 #  test/Integration/Dialect/SparseTensor/python/ until we have a better
 #  solution.
 
-from mlir import all_passes_registration
 from mlir import execution_engine
 from mlir import ir
 from mlir import passmanager


        


More information about the Mlir-commits mailing list