Files
clang-p2996/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
Simon Pilgrim 9e30b87afb [TTI] getMinMaxReductionCost - add FastMathFlag argument
Similar to the getArithmeticReductionCost / getExtendedReductionCost calls (which really don't need to use std::optional<>).

This will be necessary to correct recognize fast/nnan fmax/fmul reductions which can avoid nan handling - which will allow us to remove the fmax/fmin special case in X86TTIImpl::getMinMaxCost and use getIntrinsicInstrCost like we do for integer reductions (63c3895327).

Differential Revision: https://reviews.llvm.org/D148149
2023-04-13 10:42:42 +01:00

46 KiB