[llvm] [AArch64][CostModel] Consider the cost of const vector (PR #117539)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 3 10:15:35 PST 2024
================
@@ -1449,6 +1449,9 @@ class TargetTransformInfo {
const APInt &DemandedDstElts,
TTI::TargetCostKind CostKind) const;
+ /// \return The cost of materializing a constant vector.
+ InstructionCost getConstantMaterializationCost(ArrayRef<Value *> VL) const;
----------------
RKSimon wrote:
Why Value* and not Constant* ? Also this needs a CostKind argument.
https://github.com/llvm/llvm-project/pull/117539
More information about the llvm-commits
mailing list