[Mlir-commits] [llvm] [mlir] [mlir][NFC] Remove unused includes (PR #98557)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Jul 11 14:47:09 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Pranav Kant (pranavk)

<details>
<summary>Changes</summary>

Adding dep to TosaDialect increases binary size unnecessarily

---
Full diff: https://github.com/llvm/llvm-project/pull/98557.diff


2 Files Affected:

- (modified) mlir/lib/Dialect/Linalg/Transforms/WinogradConv2D.cpp (-2) 
- (modified) utils/bazel/llvm-project-overlay/mlir/BUILD.bazel (-1) 


``````````diff
diff --git a/mlir/lib/Dialect/Linalg/Transforms/WinogradConv2D.cpp b/mlir/lib/Dialect/Linalg/Transforms/WinogradConv2D.cpp
index 9b8fa7cf6bac1..18dd4769f9a49 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/WinogradConv2D.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/WinogradConv2D.cpp
@@ -15,9 +15,7 @@
 #include "mlir/Dialect/Linalg/IR/Linalg.h"
 #include "mlir/Dialect/Linalg/Utils/Utils.h"
 #include "mlir/Dialect/Tensor/IR/Tensor.h"
-#include "mlir/Dialect/Tosa/Utils/ConversionUtils.h"
 #include "mlir/Dialect/Utils/StaticValueUtils.h"
-#include "mlir/Transforms/GreedyPatternRewriteDriver.h"
 #include "llvm/Support/MathExtras.h"
 
 namespace mlir {
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index 46d57d512b0ca..ab3757342c76f 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -11350,7 +11350,6 @@ cc_library(
         ":TensorTransforms",
         ":TensorUtils",
         ":TilingInterface",
-        ":TosaDialect",
         ":TransformUtils",
         ":ValueBoundsOpInterface",
         ":VectorDialect",

``````````

</details>


https://github.com/llvm/llvm-project/pull/98557


More information about the Mlir-commits mailing list