Skip to content

Commit ae4289f

Browse files
authored
[Hexagon][NFC] Drop no-op getMaskedMemoryOpCost/getGatherScatterOpCost stubs (#170426)
These stubs (from 4bdf1aa) don’t actually override anything. Removing them eliminates the need for a local getMemIntrinsicCost() forwarder in #169885.
1 parent befa4e8 commit ae4289f

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,6 @@ InstructionCost HexagonTTIImpl::getMemoryOpCost(unsigned Opcode, Type *Src,
223223
OpInfo, I);
224224
}
225225

226-
InstructionCost
227-
HexagonTTIImpl::getMaskedMemoryOpCost(const MemIntrinsicCostAttributes &MICA,
228-
TTI::TargetCostKind CostKind) const {
229-
return BaseT::getMaskedMemoryOpCost(MICA, CostKind);
230-
}
231-
232226
InstructionCost
233227
HexagonTTIImpl::getShuffleCost(TTI::ShuffleKind Kind, VectorType *DstTy,
234228
VectorType *SrcTy, ArrayRef<int> Mask,
@@ -238,12 +232,6 @@ HexagonTTIImpl::getShuffleCost(TTI::ShuffleKind Kind, VectorType *DstTy,
238232
return 1;
239233
}
240234

241-
InstructionCost
242-
HexagonTTIImpl::getGatherScatterOpCost(const MemIntrinsicCostAttributes &MICA,
243-
TTI::TargetCostKind CostKind) const {
244-
return BaseT::getGatherScatterOpCost(MICA, CostKind);
245-
}
246-
247235
InstructionCost HexagonTTIImpl::getInterleavedMemoryOpCost(
248236
unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices,
249237
Align Alignment, unsigned AddressSpace, TTI::TargetCostKind CostKind,

llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,10 @@ class HexagonTTIImpl final : public BasicTTIImplBase<HexagonTTIImpl> {
120120
TTI::OperandValueInfo OpInfo = {TTI::OK_AnyValue, TTI::OP_None},
121121
const Instruction *I = nullptr) const override;
122122
InstructionCost
123-
getMaskedMemoryOpCost(const MemIntrinsicCostAttributes &MICA,
124-
TTI::TargetCostKind CostKind) const override;
125-
InstructionCost
126123
getShuffleCost(TTI::ShuffleKind Kind, VectorType *DstTy, VectorType *SrcTy,
127124
ArrayRef<int> Mask, TTI::TargetCostKind CostKind, int Index,
128125
VectorType *SubTp, ArrayRef<const Value *> Args = {},
129126
const Instruction *CxtI = nullptr) const override;
130-
InstructionCost
131-
getGatherScatterOpCost(const MemIntrinsicCostAttributes &MICA,
132-
TTI::TargetCostKind CostKind) const override;
133127
InstructionCost getInterleavedMemoryOpCost(
134128
unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices,
135129
Align Alignment, unsigned AddressSpace, TTI::TargetCostKind CostKind,

0 commit comments

Comments
 (0)