[llvm] [TTI]Add support for strided loads/stores. (PR #80329)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 1 11:48:38 PST 2024
================
@@ -1041,6 +1046,15 @@ InstructionCost TargetTransformInfo::getGatherScatterOpCost(
return Cost;
}
+InstructionCost TargetTransformInfo::getStridedMemoryOpCost(
+ unsigned Opcode, Type *DataTy, const Value *Ptr, bool VariableMask,
+ Align Alignment, TTI::TargetCostKind CostKind, const Instruction *I) const {
+ InstructionCost Cost = TTIImpl->getStridedMemoryOpCost(
+ Opcode, DataTy, Ptr, VariableMask, Alignment, CostKind, I);
+ assert(Cost >= 0 && "TTI should not produce negative costs!");
----------------
preames wrote:
This assert will need adjusted.
https://github.com/llvm/llvm-project/pull/80329
More information about the llvm-commits
mailing list