From 1afbdbd27d6b65649af23475c5f530ff15c736af Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 13 Apr 2023 11:17:37 +0100 Subject: [PATCH] [TTI] Remove unnecessary default CostKind args from getExtendedReductionCost/getMulAccReductionCost wrappers. NFC. We should only ever call these from the TargetTransformInfo interface, which provides all the args. --- llvm/include/llvm/Analysis/TargetTransformInfo.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/llvm/include/llvm/Analysis/TargetTransformInfo.h b/llvm/include/llvm/Analysis/TargetTransformInfo.h index d355b08..02465e2 100644 --- a/llvm/include/llvm/Analysis/TargetTransformInfo.h +++ b/llvm/include/llvm/Analysis/TargetTransformInfo.h @@ -2550,16 +2550,16 @@ public: TTI::TargetCostKind CostKind) override { return Impl.getMinMaxReductionCost(Ty, CondTy, IsUnsigned, FMF, CostKind); } - InstructionCost getExtendedReductionCost( - unsigned Opcode, bool IsUnsigned, Type *ResTy, VectorType *Ty, - FastMathFlags FMF, - TTI::TargetCostKind CostKind = TTI::TCK_RecipThroughput) override { + InstructionCost + getExtendedReductionCost(unsigned Opcode, bool IsUnsigned, Type *ResTy, + VectorType *Ty, FastMathFlags FMF, + TTI::TargetCostKind CostKind) override { return Impl.getExtendedReductionCost(Opcode, IsUnsigned, ResTy, Ty, FMF, CostKind); } - InstructionCost getMulAccReductionCost( - bool IsUnsigned, Type *ResTy, VectorType *Ty, - TTI::TargetCostKind CostKind = TTI::TCK_RecipThroughput) override { + InstructionCost + getMulAccReductionCost(bool IsUnsigned, Type *ResTy, VectorType *Ty, + TTI::TargetCostKind CostKind) override { return Impl.getMulAccReductionCost(IsUnsigned, ResTy, Ty, CostKind); } InstructionCost getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA, -- 2.7.4