[llvm-branch-commits] [llvm] [TTI][SLP] Pass the scalars of the lanes to getArithmeticInstrCost (PR #241758)

Alexey Bataev via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Nov 16 09:46:39 PST 2026


================
@@ -5183,7 +5183,8 @@ std::optional<InstructionCost> AArch64TTIImpl::getFP16BF16PromoteCost(
 InstructionCost AArch64TTIImpl::getArithmeticInstrCost(
     unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind,
     TTI::OperandValueInfo Op1Info, TTI::OperandValueInfo Op2Info,
-    ArrayRef<const Value *> Args, const Instruction *CtxI) const {
+    ArrayRef<const Value *> Args, const Instruction *CtxI,
+    ArrayRef<const Value *> Scalars) const {
----------------
alexey-bataev wrote:

const TargetLibraryInfo *TLibInfo

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


More information about the llvm-branch-commits mailing list