Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mlir][NFC] Remove unused includes #98557

Merged
merged 1 commit into from
Jul 11, 2024
Merged

[mlir][NFC] Remove unused includes #98557

merged 1 commit into from
Jul 11, 2024

Conversation

pranavk
Copy link
Contributor

@pranavk pranavk commented Jul 11, 2024

Adding dep to TosaDialect increases binary size unnecessarily

Adding dep to TosaDialect increases binary size unnecessarily
@llvmbot llvmbot added mlir:linalg mlir bazel "Peripheral" support tier build system: utils/bazel labels Jul 11, 2024
@llvmbot
Copy link
Collaborator

llvmbot commented Jul 11, 2024

@llvm/pr-subscribers-mlir-linalg

@llvm/pr-subscribers-mlir

Author: Pranav Kant (pranavk)

Changes

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 --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",

@pranavk
Copy link
Contributor Author

pranavk commented Jul 11, 2024

cc: @Hsiangkai

@pranavk pranavk requested a review from Hsiangkai July 11, 2024 21:48
@pranavk pranavk merged commit 9c1861b into llvm:main Jul 11, 2024
8 of 10 checks passed
@pranavk pranavk deleted the mlir_bug branch July 11, 2024 21:57
aaryanshukla pushed a commit to aaryanshukla/llvm-project that referenced this pull request Jul 14, 2024
Adding dep to TosaDialect increases binary size unnecessarily
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bazel "Peripheral" support tier build system: utils/bazel mlir:linalg mlir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants