[Mlir-commits] [mlir] b46c602 - Remove unused function from StripFuncQuantTypes (#121594)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Mar 31 11:50:35 PDT 2025


Author: Sandeep Dasgupta
Date: 2025-03-31T14:50:32-04:00
New Revision: b46c60272ef4163d3174cfd0fb48ab1cf63b4f62

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

LOG: Remove unused function from StripFuncQuantTypes (#121594)

`StripFuncQuantTypes::isLegalType` is unused and can be safely removed.

Added: 
    

Modified: 
    mlir/lib/Dialect/Quant/Transforms/StripFuncQuantTypes.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Quant/Transforms/StripFuncQuantTypes.cpp b/mlir/lib/Dialect/Quant/Transforms/StripFuncQuantTypes.cpp
index de834fed90e42..4009faa21576d 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