[llvm] [TTI] Remove getVPMemoryOpCost. NFC (PR #160838)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 26 02:17:59 PDT 2025
https://github.com/lukel97 created https://github.com/llvm/llvm-project/pull/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.
>From d3ad159680a160888850f30234245a29fd1131ca Mon Sep 17 00:00:00 2001
From: Luke Lau <luke at igalia.com>
Date: Fri, 26 Sep 2025 17:13:47 +0800
Subject: [PATCH] [TTI] Remove getVPMemoryOpCost. NFC
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.
---
llvm/include/llvm/Analysis/TargetTransformInfo.h | 6 ------
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h | 8 --------
2 files changed, 14 deletions(-)
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