[llvm] [NFC][TTI] Remove default CostKind from TTI::getMinMaxReductionCost() (PR #219310)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 28 04:28:56 PDT 2026
================
@@ -1757,9 +1757,10 @@ class TargetTransformInfo {
unsigned Opcode, VectorType *Ty, std::optional<FastMathFlags> FMF,
TTI::TargetCostKind CostKind) const;
- LLVM_ABI InstructionCost getMinMaxReductionCost(
- Intrinsic::ID IID, VectorType *Ty, FastMathFlags FMF = FastMathFlags(),
- TTI::TargetCostKind CostKind = TTI::TCK_RecipThroughput) const;
+ LLVM_ABI InstructionCost getMinMaxReductionCost(Intrinsic::ID IID,
+ VectorType *Ty,
+ TTI::TargetCostKind CostKind,
+ FastMathFlags FMF) const;
----------------
RKSimon wrote:
If you're removing both default args why do you need to reorder? Its also weird that the order is different to its getArithmeticReductionCost sibling callback
https://github.com/llvm/llvm-project/pull/219310
More information about the llvm-commits
mailing list