[llvm] e301a7b - [TTI] Remove getVPMemoryOpCost. NFC (#160838)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 4 14:56:17 PDT 2025
Author: Luke Lau
Date: 2025-10-04T21:56:13Z
New Revision: e301a7bbe1fb7006b969c54675ec3813b45d82c7
URL: https://github.com/llvm/llvm-project/commit/e301a7bbe1fb7006b969c54675ec3813b45d82c7
DIFF: https://github.com/llvm/llvm-project/commit/e301a7bbe1fb7006b969c54675ec3813b45d82c7.diff
LOG: [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.
Added:
Modified:
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/TargetTransformInfo.h b/llvm/include/llvm/Analysis/TargetTransformInfo.h
index 7a4abe9ee5082..5d3b233ed6b6a 100644
--- a/llvm/include/llvm/Analysis/TargetTransformInfo.h
+++ b/llvm/include/llvm/Analysis/TargetTransformInfo.h
@@ -1551,12 +1551,6 @@ class TargetTransformInfo {
OperandValueInfo OpdInfo = {OK_AnyValue, OP_None},
const Instruction *I = nullptr) const;
- /// \return The cost of VP Load and Store instructions.
- LLVM_ABI InstructionCost getVPMemoryOpCost(
- unsigned Opcode, Type *Src, Align Alignment, unsigned AddressSpace,
- TTI::TargetCostKind CostKind = TTI::TCK_RecipThroughput,
- const Instruction *I = nullptr) const;
-
/// \return The cost of masked Load and Store instructions.
LLVM_ABI InstructionCost getMaskedMemoryOpCost(
unsigned Opcode, Type *Src, Align Alignment, unsigned AddressSpace,
diff --git a/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h b/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
index 566e1cf51631a..4cd607c0d0c8d 100644
--- a/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
+++ b/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
@@ -841,14 +841,6 @@ class TargetTransformInfoImplBase {
return 1;
}
- virtual InstructionCost getVPMemoryOpCost(unsigned Opcode, Type *Src,
- Align Alignment,
- unsigned AddressSpace,
- TTI::TargetCostKind CostKind,
- const Instruction *I) const {
- return 1;
- }
-
virtual InstructionCost
getMaskedMemoryOpCost(unsigned Opcode, Type *Src, Align Alignment,
unsigned AddressSpace,
More information about the llvm-commits
mailing list