Skip to content

Commit b46c602

Browse files
authored
Remove unused function from StripFuncQuantTypes (#121594)
`StripFuncQuantTypes::isLegalType` is unused and can be safely removed.
1 parent 2653eb5 commit b46c602

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,6 @@ class QuantizedTypeConverter : public TypeConverter {
6565
class StripFuncQuantTypes
6666
: public impl::StripFuncQuantTypesBase<StripFuncQuantTypes> {
6767

68-
// Return whether a type is considered legal when occurring in the header of
69-
// a function or as an operand to a 'return' op.
70-
static bool isLegalType(Type type) {
71-
if (auto tensorType = dyn_cast<TensorType>(type))
72-
return isLegalType(tensorType.getElementType());
73-
return !isa<quant::QuantizedType>(type);
74-
}
75-
7668
public:
7769
void runOnOperation() override {
7870

0 commit comments

Comments
 (0)