[Hexagon] Remove unused function, NFC
authorKrzysztof Parzyszek <kparzysz@quicinc.com>
Tue, 11 Oct 2022 15:04:07 +0000 (08:04 -0700)
committerKrzysztof Parzyszek <kparzysz@quicinc.com>
Tue, 11 Oct 2022 15:05:22 +0000 (08:05 -0700)
llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp

index 199a744..df3bcf9 100644 (file)
@@ -92,7 +92,6 @@ public:
   int getSizeOf(const Value *Val, SizeKind Kind = Store) const;
   int getSizeOf(const Type *Ty, SizeKind Kind = Store) const;
   int getTypeAlignment(Type *Ty) const;
-  size_t length(Value *Val) const;
   size_t length(Type *Ty) const;
 
   Constant *getNullValue(Type *Ty) const;
@@ -1031,10 +1030,6 @@ auto HexagonVectorCombine::getTypeAlignment(Type *Ty) const -> int {
   return DL.getABITypeAlign(Ty).value();
 }
 
-auto HexagonVectorCombine::length(Value *Val) const -> size_t {
-  return length(Val->getType());
-}
-
 auto HexagonVectorCombine::length(Type *Ty) const -> size_t {
   auto *VecTy = dyn_cast<VectorType>(Ty);
   assert(VecTy && "Must be a vector type");