Calculate the cost of min/max reduction operations.
Declared in <llvm/CodeGen/BasicTTIImpl.h>
InstructionCost
getMinMaxReductionCost(
Intrinsic::ID IID,
VectorType* Ty,
FastMathFlags FMF,
TTI::TargetCostKind CostKind) const override;
The cost of min/max reduction operations.
| Name | Description |
|---|---|
| IID | Min/max intrinsic ID selecting the reduction kind. |
| Ty | Vector type being reduced. |
| FMF | Fast-math flags governing the reduction. |
| CostKind | Kind of cost to compute. |