Skip to content

Commit bb9ca8a

Browse files
committed
[Hexagon][TTI] Remove two overrides which simply proxy to base class [NFC]
These serve no point, and slightly complicate a refectoring I'm working on for this API.
1 parent ba2e3bd commit bb9ca8a

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,6 @@ ElementCount HexagonTTIImpl::getMinimumVF(unsigned ElemWidth,
138138
return ElementCount::getFixed((8 * ST.getVectorLength()) / ElemWidth);
139139
}
140140

141-
InstructionCost HexagonTTIImpl::getScalarizationOverhead(
142-
VectorType *Ty, const APInt &DemandedElts, bool Insert, bool Extract,
143-
TTI::TargetCostKind CostKind) {
144-
return BaseT::getScalarizationOverhead(Ty, DemandedElts, Insert, Extract,
145-
CostKind);
146-
}
147-
148-
InstructionCost
149-
HexagonTTIImpl::getOperandsScalarizationOverhead(ArrayRef<const Value *> Args,
150-
ArrayRef<Type *> Tys,
151-
TTI::TargetCostKind CostKind) {
152-
return BaseT::getOperandsScalarizationOverhead(Args, Tys, CostKind);
153-
}
154-
155141
InstructionCost HexagonTTIImpl::getCallInstrCost(Function *F, Type *RetTy,
156142
ArrayRef<Type *> Tys,
157143
TTI::TargetCostKind CostKind) {

llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,6 @@ class HexagonTTIImpl : public BasicTTIImplBase<HexagonTTIImpl> {
103103
return true;
104104
}
105105

106-
InstructionCost getScalarizationOverhead(VectorType *Ty,
107-
const APInt &DemandedElts,
108-
bool Insert, bool Extract,
109-
TTI::TargetCostKind CostKind);
110-
InstructionCost
111-
getOperandsScalarizationOverhead(ArrayRef<const Value *> Args,
112-
ArrayRef<Type *> Tys,
113-
TTI::TargetCostKind CostKind);
114106
InstructionCost getCallInstrCost(Function *F, Type *RetTy,
115107
ArrayRef<Type *> Tys,
116108
TTI::TargetCostKind CostKind);

0 commit comments

Comments
 (0)