[llvm] [AArch64][CostModel] Consider the cost of const vector (PR #117539)

Sushant Gokhale via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 28 01:49:26 PST 2024


================
@@ -1449,6 +1449,13 @@ class TargetTransformInfo {
                                             const APInt &DemandedDstElts,
                                             TTI::TargetCostKind CostKind) const;
 
+  /// \return The cost of materializing a constant vector.
+  InstructionCost
+  getConstVectCost(unsigned Opcode, Type *Src, Align Alignment,
----------------
sushgokh wrote:

done

https://github.com/llvm/llvm-project/pull/117539


More information about the llvm-commits mailing list