Skip to content

Commit e301a7b

Browse files
authored
[TTI] Remove getVPMemoryOpCost. NFC (#160838)
No target implements this and nothing calls it. The cost of vp.load/store/gather/scatter etc. are handled by BasicTTIImpl::getIntrinsicInstrCost which forwards it onto the appropriate TTI::getMemoryOpCost/getGatherScatterOpCost etc.
1 parent 9bfbff2 commit e301a7b

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

llvm/include/llvm/Analysis/TargetTransformInfo.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,12 +1551,6 @@ class TargetTransformInfo {
15511551
OperandValueInfo OpdInfo = {OK_AnyValue, OP_None},
15521552
const Instruction *I = nullptr) const;
15531553

1554-
/// \return The cost of VP Load and Store instructions.
1555-
LLVM_ABI InstructionCost getVPMemoryOpCost(
1556-
unsigned Opcode, Type *Src, Align Alignment, unsigned AddressSpace,
1557-
TTI::TargetCostKind CostKind = TTI::TCK_RecipThroughput,
1558-
const Instruction *I = nullptr) const;
1559-
15601554
/// \return The cost of masked Load and Store instructions.
15611555
LLVM_ABI InstructionCost getMaskedMemoryOpCost(
15621556
unsigned Opcode, Type *Src, Align Alignment, unsigned AddressSpace,

llvm/include/llvm/Analysis/TargetTransformInfoImpl.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -841,14 +841,6 @@ class TargetTransformInfoImplBase {
841841
return 1;
842842
}
843843

844-
virtual InstructionCost getVPMemoryOpCost(unsigned Opcode, Type *Src,
845-
Align Alignment,
846-
unsigned AddressSpace,
847-
TTI::TargetCostKind CostKind,
848-
const Instruction *I) const {
849-
return 1;
850-
}
851-
852844
virtual InstructionCost
853845
getMaskedMemoryOpCost(unsigned Opcode, Type *Src, Align Alignment,
854846
unsigned AddressSpace,

0 commit comments

Comments
 (0)