-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[TTI] Remove getVPMemoryOpCost. NFC #160838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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/pr-subscribers-llvm-analysis Author: Luke Lau (lukel97) ChangesNo 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. Full diff: https://github.com/llvm/llvm-project/pull/160838.diff 2 Files Affected:
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,
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/12933 Here is the relevant piece of the build log for the reference
|
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.