[Mlir-commits] [mlir] Remove unused function from StripFuncQuantTypes (PR #121594)
Sandeep Dasgupta
llvmlistbot at llvm.org
Fri Jan 3 11:45:40 PST 2025
https://github.com/sdasgup3 created https://github.com/llvm/llvm-project/pull/121594
`StripFuncQuantTypes::isLegalType` is unused and can be safely removed.
>From 04ba9adf41aa1b2ba31b1fec803e8198edd486f4 Mon Sep 17 00:00:00 2001
From: Sandeep Dasgupta <sdasgup at google.com>
Date: Fri, 3 Jan 2025 18:33:23 +0000
Subject: [PATCH] Remove unused function from StripFuncQuantTypes
---
mlir/lib/Dialect/Quant/Transforms/StripFuncQuantTypes.cpp | 8 --------
1 file changed, 8 deletions(-)
diff --git a/mlir/lib/Dialect/Quant/Transforms/StripFuncQuantTypes.cpp b/mlir/lib/Dialect/Quant/Transforms/StripFuncQuantTypes.cpp
index 71b88d1be1b05b..02384de27ab5e6 100644
--- a/mlir/lib/Dialect/Quant/Transforms/StripFuncQuantTypes.cpp
+++ b/mlir/lib/Dialect/Quant/Transforms/StripFuncQuantTypes.cpp
@@ -65,14 +65,6 @@ class QuantizedTypeConverter : public TypeConverter {
class StripFuncQuantTypes
: public impl::StripFuncQuantTypesBase<StripFuncQuantTypes> {
- // Return whether a type is considered legal when occurring in the header of
- // a function or as an operand to a 'return' op.
- static bool isLegalType(Type type) {
- if (auto tensorType = dyn_cast<TensorType>(type))
- return isLegalType(tensorType.getElementType());
- return !isa<quant::QuantizedType>(type);
- }
-
public:
void runOnOperation() override {
More information about the Mlir-commits
mailing list