[llvm] [CostModel][AArch64] Make extractelement, with fmul user, free whenev… (PR #111479)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 9 09:54:00 PDT 2024
================
@@ -1392,6 +1394,16 @@ class TargetTransformInfo {
unsigned Index = -1, Value *Op0 = nullptr,
Value *Op1 = nullptr) const;
+ /// \return The expected cost of vector Insert and Extract.
+ /// Use -1 to indicate that there is no information on the index value.
+ /// This is used when the instruction is not available; a typical use
+ /// case is to provision the cost of vectorization/scalarization in
+ /// vectorizer passes.
+ InstructionCost getVectorInstrCost(
+ unsigned Opcode, Type *Val, TTI::TargetCostKind CostKind, unsigned Index,
+ Value *Scalar,
+ const ArrayRef<std::tuple<Value *, User *, int>> ScalarUserAndIdx) const;
----------------
alexey-bataev wrote:
Remove const from ArrayRef, it is const already
https://github.com/llvm/llvm-project/pull/111479
More information about the llvm-commits
mailing list