[llvm] [SLP][TTI]Add support for strided loads. (PR #80310)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 1 10:06:48 PST 2024
================
@@ -687,6 +691,15 @@ class TargetTransformInfoImplBase {
return 1;
}
+ InstructionCost getStridedMemoryOpCost(unsigned Opcode, Type *DataTy,
+ const Value *Ptr, bool VariableMask,
+ Align Alignment,
+ TTI::TargetCostKind CostKind,
+ const Instruction *I = nullptr) const {
+ return CostKind == TTI::TCK_RecipThroughput ? TTI::TCC_Expensive
----------------
alexey-bataev wrote:
I thought about this. Unfortunately, TTI tends to fallback to the default TTI functions in many cases and just returns 1 in many cases for all kinds of costs. If it is ok to override this default behavior here, I will do it.
https://github.com/llvm/llvm-project/pull/80310
More information about the llvm-commits
mailing list